DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
fastest way to check odd or even in python
>>> def isodd(num): return num & 1 and True or False >>> isodd(10) False >>> isodd(9) True
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#fastest
#check
#odd
#python
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit