Python Question: Also need psuedocode Write a Python program that prompts the user to enter an integer and reports whether the input was even or odd. Assume that the user follows instructions and enters only integers. The program must use a while loop and it should continue to execute until the user enters zero. See pages 192-194 to learn about sentinels. EXAMPLE OUTPUT

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter3: Coding With Variables, Named Constants, And Calculations
Section: Chapter Questions
Problem 3MQ4
icon
Related questions
Question

Python Question: Also need psuedocode

Write a Python program that prompts the user to enter an integer and reports whether the input was even or odd. Assume that the user follows instructions and enters only integers. The program must use a while loop and it should continue to execute until the user enters zero. See pages 192-194 to learn about sentinels.
EXAMPLE OUTPUT

Enter an integer or 0 to quit 12
12 is an even number
Enter an integer or 0 to quit 23
23 is an odd number
Enter an integer or 0 to quit 0
All done!
Transcribed Image Text:Enter an integer or 0 to quit 12 12 is an even number Enter an integer or 0 to quit 23 23 is an odd number Enter an integer or 0 to quit 0 All done!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning