Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
inp=st.number_input("Enter a value: ")
|
| 3 |
if st.button("Submit"):
|
| 4 |
if inp%2==0:
|
| 5 |
print("Entered value is even")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
inp=st.number_input("Enter a value: ",min_value=0, max_value=9, step=1)
|
| 3 |
if st.button("Submit"):
|
| 4 |
if inp%2==0:
|
| 5 |
print("Entered value is even")
|