Practice Makes Perfect is_even


#1


It works when I set the return backwards?


if the number is divisible by 2......even it should return true if not it should return false. I had it set up that easy but had to reverse true and false to get it to pass the exercise or am I totally missing some thing? What's posted below is the opposite of what I thought should work given the instructions, why does it work?


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


#2

When this is true, there is a remainder so the number is odd.


#4