The Big iF?


#1

hello ,can somebody help me here ?I got stuck ! Thanks !


#2

def the_flying_circus(n): #You forgot to define your function input
if (n % 2 == 0):
print "The number is even"
elif (n % 2 == 0) and (n != 4):
print "The number is even and different from 4"
else:
print "The number is odd"
return True

n = raw_input("Insert a number")
the_flying_circus(n)


#3

Where is the
mistake;

# Make sure that the_flying_circus() returns True
def the_flying_circus(n):
    if (n > 0):    # Start coding here!
        print "positive" # Don't forget to indent
        # the code inside this block!
    elif (n % 2 == 0) and (n > 0):
       print "positive and even" # Keep going here.
    else:
        print "negative" # You'll want to add the else statement, too!

#4

try this

p= 15*2

def the_flying_circus():
if p > 18:
return True

elif p =="STR" or p == 20:
    return False
else:
    return True

print the_flying_circus()


#5

Thanks ( Ευχαριστώ in Greek's)