lesson1 / dropdown.py
imranjamal's picture
Upload dropdown.py
a494fa1 verified
import streamlit as st
st.title("Dropdown Selection Example")
# Dropdown menu
options = ["Python", "JavaScript", "Java", "C++"]
choice = st.selectbox("Choose a programming language:", options)
st.write(f"You selected: {choice}")