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


#1

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?


#2

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:


#3

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"
    else:
        print "That was awesome, Mom!! May we please come again?"
def the_dumb_chicken():
    if the_dumb_chicken() = 8:
        print "Yeah"

#4

But, IT DOESN'T WORK!!


#5

Why does it not work?


#6

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"
    else:
        print "Mom, go get it"

#7

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


#8

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
else:
    return True

#9

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


#10

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


#11

Thanks MTF, That really helped.


#12

Thanks BibleMan13, you tried your best :smiley:


#16