3 columns multiselect, radiobutton normal text
To upload files, please first save the app
import streamlit as st
st.title("Multi-Select and Radio Selection Demo")
# Create three columns
col1, col2, col3 = st.columns(3)
# First column with multiselect
with col1:
fruits = st.multiselect(
"Select fruits",
["Apple", "Banana", "Orange", "Mango", "Grapes"],
["Apple"],
)
st.write("Selected fruits:", fruits)
# Second column with multiselect
with col2:
colors = st.multiselect(
"Select colors",
["Red", "Blue", "Green", "Yellow", "Purple"],
["Blue"],
)
st.write("Selected colors:", colors)
# Third column with radio buttons
with col3:
season = st.radio(
"Choose season",
["Spring", "Summer", "Fall", "Winter"],
)
st.write("Selected season:", season)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?