Conditionals and Controls - the big If


#1


Help I am stuck on Conditionals and Controls - the big If

Error Message says
Oops, try again. The following exception was raised when calling the_flying_circus(): TypeError: 'bool' object is not callable


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if True and not False():    
        print True
    elif 5 == 4():
        print False 
    else: 
        print "None of the above"


#2

here:

False()

you can't thread a boolean as function call


#3

Make sure that the_flying_circus() returns True

def the_flying_circus():
if True and 5 > 4:
print True
elif 5 == 4():
print False
else:
print "None of the above"

changed it to the code above and it no says
Oops, try again. the_flying_circus() returned the value None, did you forget to add a return statement?


#4

your function needs to return True.


#5

so which part needs changing. This isn't very helpful.....


#6

you can return True rather then printing True, or you could add return True. This is exercise is for you to recap what you learned, which means you have some freedom, which is why i can't tell you exactly what to do (given that is your choice, your program, your design)


#7

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