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 has to happen for the supreme court to hear a case from a district court
In line 2 of the passage, how is love interpreted by the phrase possesses not?
Please help with this inequality
I need help on how to set up the y-axis which would be the number from questions 2&3​?
what are the values of a and b number 8​
Select the five nations that were allied powers of world war 1:
The graph shows which inequality? The vertex is (-1,3)
SOMEONE PLEASE HELP i'm struggling terribly :( Match the volume formula and figure. Be specific. A. πr2h B. Bh C. 43πr3 D. 13Bh E. 13πr2h
A video viewing Website previously used 32-bit integers to store the number of views for each video, but a video that had been watched billions of times hit the
The vertex of this parabola is at (-5, -2). When the x-value is -4, the y-value is 2. What is the coefficient of the squared expression in the parabola equation