2. is_even


#1



Shouldn't this be right?

https://www.codecademy.com/courses/python-intermediate-en-rCQKw/0/2?curriculum_id=4f89dab3d788890003000096#


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


#2

Done it, silly mistake


#3

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


#4

Hello. This work.

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


#5

thank you nuhakan. This really helped.


#7

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