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

the volume of ice block is 2400cm^3 and its density is 0.9 g/cm^3. how much part of it remains above the surface of water when it is kept in water?
true or false? spreadsheets provide more options for graphical representation of the data than databases​
A nurse teaches a nursing student about the criteria that a client should meet in order to be admitted to a hospice. Which statement made by the nursing student
With the launch of Sputnik, the United States took the lead in the space race with Russia.
The percentage of cups of tea sold on a day in a canteen was 32% and that of cups of coffeesold was 39%. The remaining percentage was that of cold drinks sold.
12x + 3y = 15 for x = -1,0,1
What is y-2=5(x+7) in standard form?
Three examples of cultural diffusion
Bailey and Elena compete in a swim race
Quiz 152 - 2y = 30Complete the missing value in the solution to the equationRHEILULIITTOMONROETITANIU​