Search
 
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.")
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #odd #python
ADD COMMENT
Topic
Name
6+5 =