Why oring this condition will make this an infinity loop?
while choice != 'y' or choice!= 'n':
I knew the answer is using
or will be also valid and should not create infinite loop, isn't it?
choice = raw_input('Enjoying the course? (y/n)') while choice != 'y' or choice!= 'n': # Fill in the condition (before the colon) choice = raw_input("Sorry, I didn't catch that. Enter again: ")