Created
January 8, 2020 22:45
-
-
Save Abdelkrim/25e97a959badf467d000a976596e4252 to your computer and use it in GitHub Desktop.
Python : Check if the given number is even
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_even(num): | |
return num % 2 == 0 | |
is_even(10) # True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment