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

Which term describes having a negative or hostile attitude or feeling toward a group of people or its members? A. Inferiority B. Behavior C. Prejudice D. Stereo
Which two management perspectives typically consider an organization to be a closed system? Check all that apply.
Woodcuts, lithography, etchings, and screen-printing are all examples of printmaking.
Steno's 2nd law or principle of horizontality states that sedimentary rocks are deposited in approximately horizontal layers. If you find them in some other pos
During the 1700s, enslaved people who tried to escape slavery:fled to places where slavery was outlawed.were never able to flee far enough.were urged to testify
Express 0.1 as a fraction.​
Question 1 (2 points) "Real-world manners" in cyberspace are referred to as (2 points) Protocol b O c od Netiquette Motivation Courtesy
You invest $1,250 in a stock. The value of the stock goes up 3.2% and you sell it. How much money did you make?
PLEASE HELP "When I left for the airport," is an example of _______.
can someone please let me know how to conjugate a verb after someone's name and I in Spanish. for example, Maria and I read (Maria y Yo ____?)