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

help me with A and B please
If a body were a car glucose would be?
Henry was studying two populations of the same species of lizards. One population lived on an island and the other lived on the mainland. Both populations were
What is the point-slope equation of the line? Help me please):
Taxes on the property buyer Tamara is purchasing are $8,200, due on December 31. If the closing is set for June 29th, using the 365-day method, how much of the
how do organs relate to cells and tissues?
the split between the eastern church and western church became known as
Suppose that the height (in centimeters) of a candle is a linear function of the amount of time (in hours) it has been burning. After 9 hours of burning, a can
Use the figure to complete each statement. please help me out
Understanding an author's culture helps a reader: A understand the meaning of a character's Behavior. B detailed ethical and unfamiliar words in the text. C int