NishantKsingh commited on
Commit
0cb0b85
·
verified ·
1 Parent(s): a132bd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")