Please help with understanding my error message


#1

Oops, try again. the_flying_circus() should return True, instead it returned: 'True' this is the error message returned while writing the code

def the_flying_circus():
if (3 > 1) and (3 == 3): # Start coding here!
return "True" # Don't forget to indent
# the code inside this block!
elif (3 > 1) and (3 != 3):
return "False" # Keep going here.
else:
print "None of the above" # You'll want to add the else statement, too!

Would appreciate clarification.

I thought my answer was supposed to return True


#2

'True'
True

What difference do the quotes make?


#3

Lose the quotes on return "True" and return "False" and make sure to indent the if and indent the return statement within the if statement


#4

Thank you. that did make it work :smile:


#5

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