Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find if a value is even or odd in python

num = int(input("Enter a Number:"))
if num % 2 == 0:
  print(num , "is even")
else:
  print(num , "is odd")
 
PREVIOUS NEXT
Tagged: #find #odd #python
ADD COMMENT
Topic
Name
5+3 =