
Is Even
We have prepared a set of Editor's Choice Solutions.
You will see them first after you solve the mission. In order to see all other solutions you should change the filter.

Check if the given number is even or not. Your function should return True if the number is even, and False if the number is odd.
Input: An integer (int).
Output: Logic value (bool).
Examples:
assert is_even(2) == True assert is_even(5) == False assert is_even(0) == True