aashwinik commited on
Commit
996c404
·
verified ·
1 Parent(s): 68900aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,8 @@ def get_userInput():
14
  return input
15
 
16
  def validate_userInput(user_input):
17
- if int(user_input).isdigit():
 
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
 
14
  return input
15
 
16
  def validate_userInput(user_input):
17
+ user_input = int(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
  return True