2. is_even


Shouldn't this be right?


def is_even(x):
    if x % 2:
        return True


Done it, silly mistake


Please help. I'm did the same thing as you did shown above, but I can't find the solution to the problem.


Hello. This work.

def is_even(x):
if x % 2 == 0:
return True
print "True"
return False


thank you nuhakan. This really helped.


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