How to chek even and odd without modules operator and any condition?

there are 2 ways to do the same.

1.

a =

if(a&1==1):

print(“This Number is Odd”)

else:

print(“This Number is Even”)

x=int(number/2)*2;

if(x==number):

print(“This Number is Even”)

else:

print(“This Number is Odd”)

by this 2 methods you can find if number is Odd or Even.

x=int(input(“enter a number”))

if x%2==0:

print(x,“is even”)

ifx%2!=0:

print(x,“is odd”)

Num = int(input("Enter The Number:))

If Num %2==0 :

print(“Number Is Even”)

Else :

print(“Number Is Odd”)