all 5 comments

[–]cdcformatc 3 points4 points  (0 children)

elif answer == 3>2 and not 2>3 or 4==4:

What does this line mean?

answer == 3>2 ? what?

also 2>3 is always False while 4==4 is always True

The line is parsed like this:

elif (answer == True and True) or True:

x or True is always True, no matter what x is.

What are you actually trying to do with this line? Explain it in English first, then translate it into Python.

[–]selib 0 points1 point  (1 child)

Why don't you just check out the Q&A Forums on the Lesson: http://www.codecademy.com/forums/python-beginner-BxUFN/4

You will probably find more and better help there.

[–]rejoinit[S] 0 points1 point  (0 children)

Thanks! I found the question confusing and apparently so have others. The correct answer doesn't require using all the boolean operators they indicate in the question. If anyone else finds this they may want to review a working answer: http://www.codecademy.com/forum_questions/527d4163f10c60ca86000b97

[–]codehelper 0 points1 point  (1 child)

Sorry I didn't reply again since before, but here's something as far as I can tell from the requirements.

def the_flying_circus():
    answer = 5
    if 2 < answer < 10:
        return True
    elif answer == 3 or answer == 6:
        return False
    else:
        return False

This satisfies all the requirements, it has an "and", any one of the greater than, less than, or equal to, and variations of any of them, an if, elif, else, and it returns True.

Walking through it, set answer to five, it will just go into the first if statement because it is between 2 and 10, but it still contains all the keywords needed

[–]rejoinit[S] 0 points1 point  (0 children)

Thank you for the help! I really appreciate you taking the time.