Answers for "find the odd number using python define"

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

Python Answers by Framework

Browse Popular Code Answers by Language