Question: a. [10] A student is asked to write a function that will take a list containing values of relative humidity (a percentage between 0

a. [10] A student is asked to write a function that will 

a. [10] A student is asked to write a function that will take a list containing values of relative humidity (a percentage between 0 and 100) and return the lowest value. She wrote the function below, along with the test code with an example list: def badmin (mylist) min = 0 for i in range (len (mylist)): if mylist[i] < min: min = mylist[i] return min print (badmin([64, 53, 86]) Unfortunately, the program did not print the actual minimum of the example list which is 53 i) What will this program actually print? ii) Please correct the code so that it reports the correct minimum value. You can simply state any line(s) to be added/corrected/removed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!