Question: Write a Python program that accepts a list of numbers from the user and performs the following:Input Validation: Use a while loop to ensure the
Write a Python program that accepts a list of numbers from the user and performs the following:Input Validation: Use a while loop to ensure the user enters valid numbers eg no letters or empty inputsAnalysis with Loops:Calculate and display the sum of all numbers.Find and display the largest and smallest numbers in the list.Count how many numbers are even and how many are odd.Allow the user to repeat the analysis with a new list without restarting the program using a while True loopOutput Example: Enter a number or type 'done' to finish: Enter a number or type 'done' to finish: Enter a number or type 'done' to finish: Enter a number or type 'done' to finish: done Total sum: Largest number: Smallest number: Even numbers: Odd numbers: Do you want to repeat YN: N
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
