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