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

what is g divided by 2.1=-6.8?
How did archaeologists discover that people of ancient Mesopotamia built on top of earlier ancient cities? A. by deciphering the cuneiform found on clay tablets
A woman treated her home with a pesticide that kills spiders. The first application killed 78% of the spiders. Two months later she applied the pesticide again,
what is ten times as much as 0.1
Give four examples of properties of nonmetals that are exactly the opposite of the properties of metals
what is the scientific method
Four hundred grams of grass seed are used for every 100 m2. Find the amount of seed needed, in kilograms, to cover 3000 m2?
what does y =mx +b mean and how do you use it to solve problems? whats the different between y=mx+b and y=mx + c
Which phrase best describes DNA? A. the structure that allows biochemical reactions to occur B. the structure that translates information into action C. the mol
what are 2 decimals whose quotient is about 4.1 need the answer fast!