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

Brandon enters bike races. He bikes 6 1/2 miles every 1/2 hour. Complete the table to find how far Brandon bikes for each time interval.
An amount was shared in the ratio 8:6:9:14:12.The largest share was56.What was the total amount shared?
Both the English Civil War and the American Revolution can be seen as "sister revolutions" since both were products of the Enlightenment and the new ideas popul
Find the supplement of a 55° angle, in degrees.
Please explain the difference between an isotonic solution and a solution in equilibrium. Please do not use anything from the internet because I need an explana
300 times 4 does anyone know the answer
When it comes to Reinforcement and Punishment, regardless of what the text or lecture notes say, which do you think "teaches" you better? Give an example. Be s
Find the number of all the 3-digit numbers which are divisible by 2 but not divisible by 10.
A committee consisting 4 of faculty members and 5 students is to be formed. Every committee position has the same duties and voting rights. There are 9 faculty
hi can anyone help me with this plzzz​