import streamlit as st x = st.slider('Select a value and I\'ll square it') st.write(x, 'squared is', x * x)