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

Ted weighs partly used spools to estimate the length of cable that remains. He knows that 1 metre of lighting cable weighs 85 grams, and that an empty spool wei
Reagan surveyed a number of her classmates about what time they usually go to bed. Of the fifteen classmates she asked, nine said 10 p.m. What percent of the st
The voice of the narrator, heard only by the audience, is an example of
Commission of sales on office equipment is paid at the rate of 12%. Last week $2860 worth of office equipment was sold. What was the commission?
A primary theme in Robert lowells poem For the Union Dead is ?
How much energy is available to organisms on the 5th trophic level compared with those on the 1st
Refer to Explorations in Literature for a complete version of this narrative. Read this excerpt from “The Final Assault” by Sir Edmund Hillary. …there were hang
A fatty acid which contains only single covalent bonds between its carbon atoms is unsaturated.
midpoint ST is (5,-8). Find coordinates for S? If T(0,4)
increasing sales without changing the original product