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 WITH 4 AND 5!!!
Lines that create a grid pattern to help you lay out your publication are called _____
12 gallons of gas to travel 144 miles. Six gallons in the tank how much more will she need to travel 240
A fair dice is rolled. Work out the probability of getting a factor of 12. Give your answer in its simplest form.
Read the section titled "Natural Gas." Why is the use of natural gas as a fuel becoming more common? (Site 1)
mexico is the largest blank country in the world. A) oil producing B) spanish speaking C) computer programming D) ice fishing
!!PLEASE ANSWER ASAP!! which newspaper headline accurately describes the cause of the Cold War?
what is the standard form for a quadratic? what are the 4 methods we can use to solve a quadratic?
Which equation is in standard form? 3x + 4y = 10 19 + 3y = 2x 7y−7x=8 8 + 5x = 3y
Which equation models this problem? Carol paid $271 to rent a car for 4 days.What was the rate,r, per day to rent the car? A: 27]r=4 B: r/271=4 C: r=4/271 D