Not that I have encountered any problem with this lesson but I am confused about one particular bit.
In the code below why is it
x%2==0 and not x%2 only?
I didn't understand the reason behind x is divisible by 2 and then the need to put IS EQUAL TO 0 (==0)
Thank you in advance.
def is_even(x): if x%2==0: return True else: return False.