How to embed input in markdown

Hi, I would like to embed the input in my markdown. Any suggestions on how to do that? Thank you!

input = st.text_input(β€œabcd”)
st.markdown("Input is abcd")

Hi @samzhu -

You can use f-strings for this:

input = st.text_input("abcd")
st.markdown(f"Input is {input}")