At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

Write a program that reads an integer and determines and prints whether it is odd or even.

Sagot :

num = int(input("Enter a number: "))

print(str(num)+" is even" if num % 2 == 0 else str(num)+" is odd")

I wrote my code in python 3.8. Best of luck.

We hope this was helpful. Please come back whenever you need more information or answers to your queries. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Get the answers you need at Westonci.ca. Stay informed by returning for our latest expert advice.