import streamlit as st x = st.slider("set a value") st.write(x, 'squared is', x + x)