Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python odd or even

n = int(input("Enter a number: "))
print(["even","odd"][n % 2])
 
PREVIOUS NEXT
Tagged: #python #odd
ADD COMMENT
Topic
Name
1+2 =