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

During which eon did the first bacteria appear? (If correct, will vote for Brainiest)
Indicate in standard form the equation of the line passing through the given points. S(1/2, 1), T(1/2, 4) A.) x = 1/2 B.) y = 1/2 C.) -2x + y = 0
Each of the following except ___, is an agency under the control of the director of national intelligence
Which work is the best example of adaptation a . an autobiography by a popular actor b . a song written to celebrate an event c . a painting by one of the ol
what navy took a role in yorktown
Beatriz: Estos días a menudo tengo dolor en los dientes. Luisa: Te aconsejo ir al _________.
Simplify the expression. (−5a5b5)2(a3b3)5
Which elements do carbohydrates contain, and in what ratio
I don’t understand what to do
choose the word or words that best complete the sentence "I could tell by the way the man gave himself credit for the event that he was a very ____ person"A. Em