Simple errors - does your code accept anything other than y and n


#1



https://www.codecademy.com/courses/python-beginner-en-cxMGf/0/4?curriculum_id=4f89dab3d788890003000096#


It seems to be working but i get the error message 'Oops, try again. Does your code accept anything other than "y" and "n"?'


choice = raw_input('Enjoying the course? (y/n)')

while choice != "y" and "n":  # Fill in the condition (before the colon)
    choice = raw_input("Sorry, I didn't catch that. Enter again: ")

Uploading... Uploading...


#2

you should compare at the left and right hand side of a or or and operator:

if x > 10 and x < 50:

see how compare at the left and right hand sight? You need to do this as well


#3

ah. thanks very much, especially for such a quick reply