File size: 307 Bytes
d159bdf d3d5220 d159bdf d3d5220 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import streamlit as st
# Get user input
user_input = st.text_input("Enter your name", "Your Name")
# Display the slider and calculate the square
x = st.slider('Select a value')
square_result = x * x
# Display the user input and the result
st.write(f"Hello, {user_input}! {x} squared is {square_result}")
|