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

Just give me the answer lol
Write a complete sentence describing two things you brought recently at a market and what each was made of In spanish
Which of the following is equivalent to the equation below? -23 - (-6) = x A. 23 + 6 = x B. -23 - 6 = x C. -23 + 6 = x D. 23 - 6 = x
Which measure is equivalent to 126 in.? 1 ft = 12 in. 1 yd = 3 ft 3 yd 3.5 yd 10.5 yd 31.5 yd
Earth rotates around the sun once a year O True O False
give me 5 forces that are used in baseball​
what was the effect the slave trade had on African nations?
An 8 pack of light bulbs cost $22.40 what’s the unit price
Did OJ Simpson commit the murders of Nicole Brown Simpson and Ron Goldman? Justify your answer by using compelling evidence from the case.​
Help please! Correct gets brainliest! Trolls will be deleted! 40 POINTS!!!