Function checking if number is even X80779


Statement
 

pdf   zip   main.py

html

Write a function that checks if a number given as parameter is even.

def isEven(x):
 ...

a

Observation

hola

Sample session
>>> isEven(0)
True
>>> isEven(1)
False
>>> isEven(2)
True
>>> isEven(3)
False
>>> isEven(4)
True
>>> isEven(5)
False
>>> isEven(6)
True
>>> isEven(7)
False
>>> isEven(8)
True
>>> isEven(9)
False
>>> isEven(10)
True
Information
Author
Guillem Godoy
Language
English
Official solutions
Python
User solutions