import streamlit as st st.set_page_config(layout="wide") x = st.slider('Select a value') st.write(x, 'squared is', x * x)