Question: Note: Please create Python _ ( l ) ist _ ( r ) ange . py file that contains the function. Write a function listRange

Note: Please create Python_(l)ist_(r)ange.py file that contains the function.
Write a function listRange (L) which takes a list L of numbers and prints statements
containing the following information, for example:
When the function is called with list myList as argument
myList =[26,22,-6,-19,27,-12,-6,9,-10,21]
listRange(myList)
The function prints:
List: 26,22,-6,-19,27,-12,-6,9,-10,21
Minimum value: -19 Maximum value: 27 Difference: 46
Note: Your solution should not make use of the built-in functions max() and min();
you should write code that explicitly finds the maximum and minimum values in the list L and then reports the resulting maximum, minimum and difference. Only after the function passes the first test, the Autograder will award points for not using
max() and min().
Attached are photos of the autograder result and the code I am trying to use.
Note: Please create Python _ ( l ) ist _ ( r )

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!