Yatos / app.py
Schmitz005's picture
Create app.py
683afa9 verified
raw
history blame contribute delete
236 Bytes
import streamlit as st
# Create a slider with predefined minimum, maximum, and starting value
x = st.slider('Select a value', min_value=0, max_value=100, value=50)
# Display the value and its square
st.write(f'{x} squared is {x * x}')