Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Is Even by psomic
is_even = lambda num: True if num%2==0 else False
if __name__ == '__main__':
print("Example:")
print(is_even(2))
# These "asserts" are used for self-checking and not for an auto-testing
assert is_even(2) == True
assert is_even(5) == False
assert is_even(0) == True
print("Coding complete? Click 'Check' to earn cool rewards!")
July 27, 2021
Comments: