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

3(2x–7)=5–(1–x) I NEED Help ASAP
After having read, how do you think pollution in one sphere can have an impact on another? Be specific and explain.
find the monthly income of Rajesh EFI students out of his monthly income 17% on Children's education and 3% donation to an organisation which amounts to rupees
preapare ad dialouge between two friens abot any likrable international ppersonality​
-5x+4y=3x, solve for y
Select the correct answer.The equation of a line is y = 1.5x − 2. What are its slope and y-intercept?A. slope = 1.5 and y-intercept = -2B. slope = 1.5 and y-int
What restrictions are there on immigration today?
System AAA \text{\quad}start text, end text System BBB \begin{cases}x-4y=1\\\\5x+6y=-5\end{cases} ⎩ ⎪ ⎪ ⎨ ⎪ ⎪ ⎧ ​ x−4y=1 5x+6y=−5 ​ \begin{cases}x=1+4y\\\\5
why do you think Waldeeemuller would have taken the initiative to name the Americas? 7th grade social studies
The wholesale price of a lamp is $44 and will be marked up by 40 percent. What is the retail price of the lamp?