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