def the_flying_circus():
print "what is your age "
a = 1
if not a < 1
print “I did not guess that”
return False
elif a == 1:
print “Your only one, I new that”
return True
else print “somthing has gone wrong”:
print the_flying _circus
Your program is correct except for a few changes in indentation and alignment i.,e
def the_flying_circus():
print "what is your age "
a =True#change the value of a to True
if not a
print “I did not guess that”
return False
elif a == 1:
print “Your only one, I new that”
return True
else:#colon was missing with a slight alignment mistake
print “somthing has gone wrong”:
print the_flying_circus()
def the_flying_circus():
print "what is your age "
a = 1
if not a < 1 // missing colon, after if there should be a colon
print "I did not guess that"
return False // you might want to change this to return True
elif a == 1:
print "Your only one, I new that"
return True
else print "somthing has gone wrong":
print the_flying _circus // missing () on the function call, and remove space before _circus
see comments in my code, your indent was fine, and now you made it worse in your last version
# Make sure that the_flying_circus() returns True
def the_flying_circus():
print "what is you age"
a = 1
if not a < 1:
print "i did not gaze that"
elif a == 1:
print "your only one, i new that"
else: "something has gone wrong"
print the_flying_circus()
File “python”, line 10
print the_flying_circus()
^
IndentationError: unindent does not match any outer indentation level
Save & Submit Code
Reset Code
Oops, try again. An exception was raised while running your code, see the console window for the error message.
Back to Editor
15. The Big If
what is wrong here assist me please