import streamlit as st var = st.slider('Select a value') st.write(var, 'squared is', var * var)