Answer to Question #306011 in Python for Munna

Question #306011

Write a code on even and odd numbers


1
Expert's answer
2022-03-04T06:31:58-0500
numbers=[int(x) for x in input("Enter numbers separated by space: ").split(' ')]
for number in numbers:
    if number %2==0:
        print(f"{number} is even")
    else:
        print(f"{number} 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