Dziwne, a nawet w Pythonie
n = int(input("Enter a number: "))
print(n,"is Even.") if (n % 2) == 0 else print(n,"is Odd.")
moghaazi
n = int(input("Enter a number: "))
print(n,"is Even.") if (n % 2) == 0 else print(n,"is Odd.")
Number = int(input("Write any number:- "))
Opration = Number%2
if Opration == 0:
print("it's odd number")
else:
print("It's even number")
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')