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

Please Find x Thank you with steps[tex] {3}^{x + 1} + {3}^{x - 1} = 30[/tex]​
What would the FISCAL policy action discussed in the article promote priced ability full employment and or economic growth
Proofreading The Carrington Event is the name we use to describe the geomagnetic affects of a powerful solar storm during the 1st and 2nd of September 1859. Dur
HELP PLEASEWhat is the volume of the cylinder?​
On the way home from work, a man is involved in a car accident that damages his cervical vertebrae and surrounding nerves. He becomes quadriplegic as a result.
What is the next number 6,12,15,60,65,?
HOW MUCH DID FEDERAL JUDGES GET IF THEY AGREED THAT A PERSON WAS A RUNAWAY
Ask a questions have 2 spinners . The first spinner has the numbers 3,5,7 and the second spinner has the numbers 3,5,8. Is the probability greater or less than
How many hertz are in 12 megahertz? Express the answer in correct scientific notation. 12 MHz = ? x 10^? Hx
State A and State B are among the states with the most remaining deive in movie screens. State A has 3 more screens that state B, and there are 45 screens total