Im stuck here in the big if


#1

Make sure that the_flying_circus() returns True

def the_flying_circus():

if True or False:    # Start coding here!

    print "this is really true"

    # Don't forget to indent
    # the code inside this block!
elif (3 < 4) and (5 >= 5):
    print "this true"
    # Keep going here.
    # You'll want to add the else statement, too!
else:

     return none

whats wrong this code...


#2

It would be better to use return statements and you need to use booleans and not strings for your return values.
:slight_smile:

if condition:
    return True

not,

if condition:
    return "True"

#3

Yeah. This one is hard.


#4

We are given complete freedom to do anything we wish, just so long as the function returns True. How hard can that be? It's the end of the unit and we have had enough practice with if..elif..else by now.

if %any conditional expression%:
    return True
elif %any alternate conditional%:
    return True
else:
    return True

#5

Thank you.............................................


#7

A post was split to a new topic: So here's the thing


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.