Here's the solution: python def is_even(n): return n % 2 == 0 The modulo operator % gives the remainder after division. If n % 2 equals , the number is even. The expression n % 2 == 0 already returns True or False.
You don't need an if statement. Beginners often write: python if n % 2 == 0: return True else: return False This works but it's redundant. The comparison already gives you the boolean.