DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
check a number is odd or even
def is_even(num): return not bool(num % 2)
Source by javahungry.blogspot.com #
PREVIOUS
NEXT
Tagged:
#check
#number
#odd
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit