So I was going through my old code and this is what a found


I was looking back at my code and found at lesson 15. The BIG If, that this code no longer works...

def the_flying_circus():
    if answer <102323232323232:
        return True 

    elif answer >102323232323232:
        return True

And I really expected it to work... Why??
I 'm just curious. Well somebody help me?


I would probably suggest just going back and starting completely over for the code. Its not that your format isn't right (as it is) but the instructions ask for many things you don't have for example an else statement, at least one and or not etc. And once you starting building your code up to the standards of the lesson you will probably want different if and else statements anyways. Once you get that built again and if you still have questions don't be afraid to post again! :thumbsup: and let us know how it goes! :smiley:


Here, I made new code :smiley:

def the_flying_circus():
    if the_flying_circus():
        print "Whooo hooo, that was loads of fun, we should come again Mommy"
    elif the_flying_circus():
        print "Boooorrrriiiiinnnggggg"
        print "That was awesome, Mom!! May we please come again?"
def the_dumb_chicken():
    if the_dumb_chicken() = 8:
        print "Yeah"




Why does it not work?


And why won't THIS work?

def the_flying_circus():
    if the_flying_circus == or < 4:
        print "I\'m not home!!"
    elif the_flying_circus == or > 6:
        print "I\'m coming"
        print "Mom, go get it"


Let me look for you! I will check it in my code lesson and see! :smiley:


Do you mean, "why won't it pass?"

Because the lesson expects to see a return value of True.

Also, you are asking if the function name is is equal to a logical operator that is less than a number. That line makes absolutely no sense.

The gist of the problem is to write an if..elif..else statement that returns True.

if False > True:
    # no code needed here
elif True and not True:
    # no code needed here, either
    return True


Basically follow @mtf advise, he came to the same conclusions I did and in a much simpler reply! :thumbsup:


Sorry man, I couldn't figure out what you were trying to say


Thanks MTF, That really helped.


Thanks BibleMan13, you tried your best :smiley: