File size: 281 Bytes
a6e0d3e |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# 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)
|