-2
Find = input("What estimate number? ")

I want it to loop back if they enter a non integer and also if they entered a number that is below 1 and above 190
This is going to be within a subprogram

Daddy
  • 11
  • 1
  • 1

1 Answers1

-2
try:
if 1 <= int(Find) <= 190:
  // good
else:
  // prompt again
except ValueError as e:
  // not integer
Đào Minh Hạt
  • 2,742
  • 16
  • 20