Answer to Question #304488 in Python for Kate

Question #304488

Create a program that identifies if the entered number is am odd number.Use the mod operator


1
Expert's answer
2022-03-01T09:36:43-0500
num = int(input('Enter an integer number: '))

if num % 2 == 0:
    print('The number is even')
else:
    print('The numbe is odd')

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