Answers for "is there an even number function in python"

1

odd or even in python

n = int(input("Enter a number: "))
print(n,"is Even.") if (n % 2) == 0 else print(n,"is Odd.")
Posted by: Guest on April-16-2021
-1

python even or odd

injd = int(input('Enter a number'))
n = injd % 2
if n > 0:
  print('This is an odd number')
else:
  print('This is an even number')
Posted by: Guest on October-26-2020

Code answers related to "is there an even number function in python"

Python Answers by Framework

Browse Popular Code Answers by Language