Testdemo / app.py
rupal009's picture
Create app.py
a6e0d3e verified
raw
history blame
281 Bytes
# 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)