Spaces:
Sleeping
Sleeping
Schmitz005
commited on
Commit
•
683afa9
1
Parent(s):
d7c8ba1
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Create a slider with predefined minimum, maximum, and starting value
|
4 |
+
x = st.slider('Select a value', min_value=0, max_value=100, value=50)
|
5 |
+
|
6 |
+
# Display the value and its square
|
7 |
+
st.write(f'{x} squared is {x * x}')
|