File size: 143 Bytes
c892105
 
 
 
db5635b
 
 
 
1
2
3
4
5
6
7
8
9
import streamlit as st

x = st.slider("Select a value")
st.write(x, "squared is", x * x)

b = st.button()
if b:
    st.write("button clicked")