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

List technological progress of genetics
NO LINKS OR ANSWERING WHAT YOU DON'T KNOW. THIS IS NOT A TEST OR AN ASSESSMENT!!!. Please help me with these math questions. Chapter 10 part 2 3. How do solving
How can evidence from an experiment be explained in relationship to the hypothesis? • as a prediction • as a question • as an inference • as a conclusion
"Ryan rapidly rushed round the corner as he ran the race." What rhetorical device is being used in this sentence?
If my classmate was born on April 9, two thousand and six and I was born on December 24, two thousand and four, how many months, years and days are we apart?
Provide the botanical name for each of the following: i.) Water grass ii.) Morning grass iii.) Soft weed
Choose a verb below to rewrite the sentences in reported speech. W to admit • to advise • to ask • to complain • to offer • to promise • to reply • to warn 1
The sum of twice a number and 9 is-25
A motorboat travels 104 kilometers in 4 hours going upstream. It travels 200 kilometers going downstream in the same amount of time. What is the rate of the boa
Which term is applied to the ability to control the actions of others?