Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Is Even by degtyarevvladimirr
def is_even(num: int) -> bool:
# your code here
return (True, False)[num % 2]
print('Example:')
print(is_even(2))
assert is_even(2) == True
assert is_even(5) == False
assert is_even(0) == True
print("The mission is done! Click 'Check Solution' to earn rewards!")
Sept. 24, 2022
Comments: