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 help!! math question below!!! pic
Jim is an appliance salesperson. To make a sale, he asserts that a certain model of a Kitchen Helper refrigerator is the “best one ever made.” This is​ a. ​frau
How do you know what power to raise both sides of an equation to if the indexes of the radicals are different?
If you find yourself boxed in by a vehicle on your left or right _____________ clear the space beside you. A. speed up or slow down briefly B. cut your speed i
Some tenement owners used law loopholes to keep from repairing property. 1) TRUE 2)FALSE
Water flowing through a garden hose of diameter 2.71 cm fills a 20.0-L bucket in 1.45 min. (a) What is the speed of the water leaving the end of the hose? Your
Anoche mi primo y yo __la canción nueva de Shakira por primera vez.​
what is 1/3 to the power of -4
What is the slope of the line that passing through (-2, 4) and the origin.
If a stack of 1,008 alkali fuel cells in series generates 14,800 W of power, and each cell contributes equally to the power of the stack, how much power does ea