honryyy honryyy
  • 01-01-2021
  • Computers and Technology
contestada

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

Respuesta :

Cytokine
Cytokine Cytokine
  • 01-01-2021

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.

Answer Link

Otras preguntas

The _____ is the primary channel for the transportation of water, mineral and food from the roots and leaves to the rest of the plant
Pls answer this question!! (will give brainliest)
What are some possible themes for Ray Bradbury's "Zero Hour"?
"I only regret I have but one life to lose for my country," was said by:
Describe motion of the sun
14. Triangle QRS is shown below. Q 40 100° S R Which triangle must be similar to triangle QRS? A. A triangle with two angles that measure 40º, B. A triangle wit
Please help me this question is very off for me
Kent Company's May sales budget calls for sales of $900,000. The store expects to begin May with $50,000 of inventory and to end the month with $55,000 of inven
HELP PLEASE Find the outlier of the set of data: 20, 23, 19, 25, 4, 18, 26
A restaurant has a patio that is 8 feet wide and 12 feet long. The restaurant owners want to double the area of the patio by increasing the width and the length