Apr-18-2018, 07:54 PM
(Apr-18-2018, 07:45 PM)TJOm Wrote: What would you like to do?1
'1'
Boom, there's your answer. See the quotes?
ans
is a string. You're comparing it against ints, which will never be true. So, either...a) change your if statements to compare against a string:
if ans == "1":
, orb) force ans to be an int:
ans = int(ans)
.