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

What magma would have formed from the partial melting of mantle material?.
why did the colonists believed King George suspending their legislatures was wrong.
What is the trust act that congress is trying to pass.
The students meet with a team of geologists that is studying the rock layers at the first roadcut. The geologists find fossils of the same kind of organism in l
HELP PLEASE ITS NOT D 9. What is the rate of decay, r (expressed as a decimal), for data best modeled by the exponential function y equals 3.31 left parenthesis
Contrast how the grandmother is viewed at home versus at the baths. How does the granddaughter’s view of grandma change after her day at the baths? Cite evide
The data in the timeline best support the conclusion that Adolf Hitler was: O A. a fascist dictator bent on world domination. B. an ideological zealot who under
What is the meaning of Urdu word 'qayamat ' in English?.
Do you think people face internal conflict or external conflict more often in their daily lives?
Find the discriminant of 5x2 – 3x + 2 = 0 =​