0

Im trying to validate the user's input so he/she only types in 'all' or 'sel' (not case sensitive). Might just be some syntax mistake im making.

choice=input('Type "all" or "sel": ')
choice=choice.lower()

while choice!=('sel' or 'all'):
    choice=input('Invalid input. Try again: ')
    choice=choice.lower()

This only works if I type in 'sel', but not 'all'.

Spectre
  • 138
  • 7

0 Answers0