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

Please help!" Will give brainlyest!! Should Germany begin on the road to Imperialism? I believe we should. For one, we are an industrial nation. In order to mai
What role does harmony play in a composition?
A miniature golf course charges different prices for adults and children. On Saturday, 50 adults and 50 children played, and the golf course earned $800. On S
A value of a certain stock went up by 12% . Which functions can be used to find the current value of the stock that has an original value of x ? You may choose
A 43 year-old female is seen in the emergency room with severe epistaxis. She said this is a common occurrence for her during the cold dry months of winter and
How can toxic shock syndrome be prevented? A. By using over-the-counter medications B. By changing tampons frequently C. By using prescription me
Which kinds of objects emit light? A)objects that shine B)hot objects C)distant objects D)colored objects E)all objects
Radioactive dating involves determining which of the following?
What did Paul Revere tell his friend to do if the British were going to attack by sea? A) Hang two lanterns in the belfry arch. B) Hang one lantern in the chur
can some one help me -5+9c-2c