eduardo-meik commited on
Commit
87d4d83
1 Parent(s): 17ee792

update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -1,4 +1,14 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ # Using object notation
4
+ add_selectbox = st.sidebar.selectbox(
5
+ "How would you like to be contacted?",
6
+ ("Email", "Home phone", "Mobile phone")
7
+ )
8
+
9
+ # Using "with" notation
10
+ with st.sidebar:
11
+ add_radio = st.radio(
12
+ "Choose a shipping method",
13
+ ("Standard (5-15 days)", "Express (2-5 days)")
14
+ )