Jaynerandolph1640 Jaynerandolph1640
  • 23-12-2021
  • Computers and Technology
contestada

Write a program to test if an integer input from the keyboard is odd or even. Sample Run 1: Enter a Number: 78 Even Sample Run 2: Enter a Number: 17 Odd

Respuesta :

6385726215
6385726215 6385726215
  • 24-12-2021

Answer:

number = int(input("Enter a number: "))

if number % 2 == 0:

   print("Even")

else:

   print("Odd")

Explanation:

Currently taking python at school. On the last few lessons.

Answer Link

Otras preguntas

13. Which of the following does not accurately describe fruits? A. Fruits attract animals, which helps disperse seeds. B. Fruits develop from ovary walls. C. Fr
Why don't human cells have cell walls
In line 8, “theirs” refers to (A) innumerable cigarettes (B) a laburnum’s blossoms (C) a laburnum’s branches (D) Persian saddle-bags (E) birds’ shadows Passage
• analyze the political, economic, and social concerns of the 1990-present
Which of the following is a true statement about slavery? a. It only existed in the Americas. b. Europeans introduced the institution of slavery to Africa. c.
What is human nature?
is 1.5 tons more or less than 40 tons
underwater exploration or space exploration? please list 3 reasons why on you answer
In what way was German's location an advantage during the war
A customer buys five cans of baked beans, four packets of brown sugar and two packets of biscuits from a supermarket.He gives the cashier R150.00 and gets R26.0