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

Does anyone have all the answers for Connexus United States History U4 L2 the Great Depression and New Deal Test?
Which of the following statements are true about inverse matrices?All square matrices have inverses.If A and B are inverse matrices, then A and B must be square
Find the radius, and the approximate circumference and area of the circle below. (Use 3 for \pi)
someone help me with these too , thanks!!! <3
true or false the movement of waves takes time? 1.true 2.false​
Please Help me Retelling is typically a ____ events. version of a story in its logical sequence of A. memorized B. read c. spoken D. written
a-2.5<5? the choices: a<7.5 a<15/7 a<6.5 a<11.5
Which event is considered a catalyst for southern secession? A. the Battle of Fort Sumter B. the presidential election of 1860 C. the Compromise of 1850 D. the
Winds can be characterized by their location and speed. Which winds are narrow bands of high-speed winds (almost 200 mph) that blow in the upper atmosphere? A.
Simplify : 4- 3(7x 0 2) +5x