Question: Need help with Intro to Computer Science (Python) problem Implement the function printTwoSmallest0 that inputs an arbitrary number of positive numbers from the user. The
Need help with Intro to Computer Science (Python) problem


Implement the function printTwoSmallest0 that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The function then returns a list of the two smallest values (in increasing order entered by the user. If fewer than two positive numbers are an empty list (if none entered or a list of length 1 is returned. If the user enters something other than a number, the program should display an error message and then continue with the entry of values. The information below shows how you would call the function and what it would display for several sample runs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
