def the_flying_circus():

if a:

return 2 == 2**1 and 5 > 1

print "Dost"

elif a:

return 1 == 3 or 6 > 7

print "Ex"

else a:

return 1 == 1

print "AN"

can you help me to solve the problem?

def the_flying_circus():

if a:

return 2 == 2**1 and 5 > 1

print "Dost"

elif a:

return 1 == 3 or 6 > 7

print "Ex"

else a:

return 1 == 1

print "AN"

can you help me to solve the problem?

You have to do a math comparison in your 2nd row like "if x < y or z<(a+b):"

Also you have to return a viable boolean in all rows you used it instead of a mathematical formula.

You should also delete your print statements and just print the definition in the end.

For your elif statement you also need a mathematical formula. In this case something like that: "elif x >= y:"

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