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

list three ways in which the killer fools the victims in And Then There Were None. Be specific ​
These two triangles are similar. Find side lengths a and b. Note: the two figures are not drawn to scale.​
I still need help! Please! Help me
Now we need to find the amount of NF3 that can be formed by the complete reactions of each of the reactants. If all of the N2 was used up in the reaction, how m
which example from early American history best illustrates the market economy of the British colonies?A. Virginia farmers decided to grow and sell tobacco B. Pe
Find the value of x for the right triangle. Round your answer to the nearest hundredth. 450 19
Which word is a SYNONYM for the word grave? Mrs. Roberts had grave doubts about letting Leticia and Megan work together on their assignment
What the correct answer
_______ involves the process of defining the marketing mix variables so that target customers have a clear, distinctive, desirable understanding of what the pro
if the family chooses to give you a 20% tip and the tax rate is 8.5% how much will they pay in total?? ​