# app.py import streamlit as st # Set the title of the app st.title("Square Calculator") # Create a slider for user input x = st.slider('Select a value', 0, 100, 1) # Slider ranges from 0 to 100 with a default of 1 # Display the squared value st.write(x, 'squared is', x * x)