Lesson1 / UserInput&Button.py
fahadriazkhan's picture
Update UserInput&Button.py
f12635c verified
raw
history blame contribute delete
258 Bytes
# Example 1 : Text Input and Button
st.title("Interactive App : User Input")
# Text Input Feild
name = st.text_input("Enter your name:")
# Create Button
if st.button("Greet"):
st.write(f"Hello, {name}! Welcome to your first interactive Streamlit app.")