I'm working on validating inputs in python. This is the code I have so far:
while input('Would you like to continue(y=yes/n=no)') not in ('y'):
print ("Sorry, I didnt catch that. Enter again: ")
The code works but I want to use two conditions, one for 'y' and one for 'n'.