Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,12 @@ def validate_userInput(user_input):
|
|
| 18 |
if user_input.isdigit():
|
| 19 |
if int(user_input) >= 1 and int(user_input) <= 9:
|
| 20 |
#if int(user_input) in st.session_state.legal_numbers:
|
| 21 |
-
|
| 22 |
else:
|
| 23 |
-
|
|
|
|
| 24 |
else:
|
|
|
|
| 25 |
return False
|
| 26 |
|
| 27 |
def error_Message(msg):
|
|
|
|
| 18 |
if user_input.isdigit():
|
| 19 |
if int(user_input) >= 1 and int(user_input) <= 9:
|
| 20 |
#if int(user_input) in st.session_state.legal_numbers:
|
| 21 |
+
return True
|
| 22 |
else:
|
| 23 |
+
st.write("input is not between 1 and 9 " + user_input)
|
| 24 |
+
return False
|
| 25 |
else:
|
| 26 |
+
st.write("input is not digit" + user_input)
|
| 27 |
return False
|
| 28 |
|
| 29 |
def error_Message(msg):
|