My code keeps returning the first line only!


#1

Make sure that the_flying_circus() returns True

def the_flying_circus():
a = raw_input ("What is your age?")
if (a >= 18 and a <= 21):
print "Party Party!"
return True
the_flying_circus()
elif (a > 21):
print "More focused"
return True
the_flying_circus()
elif (a < 18):
print "Bed time stories"
return True
the_flying_circus()
else:
print "You've entered something else than an age!"
return True

the_flying_circus()


#2

Hi,

inside of your function definition you call the_flying_circus() after every return statement, that isn't necessary.