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