The Big If


#1


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

My code doesnt behave incorrectly, but it took me a very long time to get what was asked of me.
Why is what I wrote enough? What is the if doing here? What exactly is tested here?
Why wouldnt I have to put in anything for my elif to be tested? I mean, my statement there is obviously False.
It's weird, but it is mindboggling not to understand the aim of the excercise.

I would have expected this not to work.


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 100 == 10**2 and 7 > 5:
        return True # Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif 100 > 10**2:
        return "whatever"
        
    else:
        return "got it?" 
        # Keep going here.
        # You'll want to add the else statement, too!


#2

Your elif statement forms a dilemma for the console because to evaluate what you are trying to check you must write the elif block like this

elif 100 >= 10**2:


#3

Could you explain a bit more why that is? What do you mean by "for the console to evaluate"? Isnt > a command as good as >= for the console?


#4

This > evaluates only for greater than. But this >= evaluates for greater than or equal to. Which is the same as writing. if x > y or x == y: