Answers for "drop down menu streamlit"

1

streamlit dropdown

Host_Country = st.selectbox('Select HomeTeamName name:',('France', 'Spain', 'Italy', 'England', 'Belgium', 'Portugal','Sweden'))
st.write('You selected:', Host_Country)
Posted by: Guest on June-11-2021
0

streamlit dropdown

# Add selectbox in streamlit
>>> option = st.selectbox(
...     'How would you like to be contacted?',
...     ('Email', 'Home phone', 'Mobile phone'))
>>>
>>> st.write('You selected:', option)
Posted by: Guest on October-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language