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

Diana has z gerbils. Jackie has 4 times as many gerbils as Diana. If w stands for the number of gerbils Jackie has, express w in terms of z, and state the indep
(b) we often read that iq scores for large populations are centered at 100. what percent of these 78 students have scores above 100? (round your answer to one d
Thirty-one books are arranged from left to right in order of increasing prices. The price of each book differs by $2 from that of each adjacent book. The price
the government might finance deficit spending by
Costa Rica has the greatest density of ___________ in the world. A- Species B- Trees C- Rivers D- Volcanoes
Jeremiah is saving money for a tutoring job after the first 3 weeks he saved 135$ assume the situation is proportional use the unit rate to write an equation re
5t+16=6-5t I need help solving step by step
Can someone explain to me how to do this
A sulfur atom and a sulfur molecule are not identical. what is the difference?
What images and figures of speech might have helped Edward's listeners to feel the peril of their sinful condition?