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.")
 
PREVIOUS NEXT
Tagged: #odd #python
ADD COMMENT
Topic
Name
1+1 =