DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
odd or even in python
n = int(input("Enter a number: ")) print(n,"is Even.") if (n % 2) == 0 else print(n,"is Odd.")
PREVIOUS
NEXT
Tagged:
#odd
#python
ADD COMMENT
Topic
COMMENT
Name
7+6 =
Submit