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

Make the following word plural.un relojunos relojesun relojesel relojeslos relojs
y=2x-2.5 plz help its due today
what is the true relationship between daisy and tom
1. What characteristics does the Pardoner reveal in his prologue?
A) simplify the expression and explain each step. 4(3x +2) - 2 b) Factor the expression completely 20b - 16
Say, a cell is treated with a proteasome inhibitor. What is expected to accumulate? a. Amino acids b. Digested proteins c. Native proteins d. Secreted proteins
HELPPP PLSSS ! THANKKKK YOUUU <3
This leaf is green is A. an observation, B. a hypothesis. C. a theory As Corporation. All Rights Reseruar​
Help Me Please. I really need it! In the case where an article or a possessive adjective come before the first part of a compound subject what happens with the
What is the slope of (-1,-9) and (0,-3)