Answer to Question #292489 in Python for harshini

Question #292489

even or odd . write a program to check if the given number is even or odd


1
Expert's answer
2022-01-31T18:24:00-0500
def even(x):
    if x % 2 == 0:
        print('{} is an even number'.format(x))
    else:
        print('{} is an odd number'.format(x))
even(1)
1 is an odd number

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS