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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import streamlit as st
2
  inp=st.number_input("Enter a value: ")
3
- if inp%2==0:
4
- print("Entered value is even")
5
- else:
6
- print("Entered value is odd")
 
 
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")
6
+ else:
7
+ print("Entered value is odd")