Apr-05-2017, 06:29 PM
Your if statement has nothing to do with your question
From your question, I would expect the input to be either rade of spam.
if you want to input an integer I would suggest:
From your question, I would expect the input to be either rade of spam.
if you want to input an integer I would suggest:
try: choice = 0 while choice not = 1 and choice not = 2: choice = int(input('Please enter 1 for rade, 2 for spam: )) except ValueError: print('Requested 1 or 2')