I feel that
while choice != 'y' and choice!= 'n'
seems inefficient. I first tried while choice != 'y' and 'n' which didn't work but then I remembered that
for the 'and' condition both would need to be FALSE to have FALSE as a result.
Is there any other way to make this more efficient? in this case there are only 2 options, y and n but if there would be let's say 10 options, things would get inefficient really fast.
choice = raw_input('Enjoying the course? (y/n)') while choice != 'y' and choice!= 'n' : # Fill in the condition (before the colon) choice = raw_input("Sorry, I didn't catch that. Enter again: ")