Question: Note: Please create Python _ ( l ) ist _ ( r ) ange . py file that contains the function. Write a function listRange
Note: Please create Pythonlistrangepy 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
listRangemyList
The function prints:
List:
Minimum value: Maximum value: Difference:
Note: Your solution should not make use of the builtin 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.
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
