Question: Given arbitrary 4 numbers in a list, write one-line command to calculate the difference between the largest value and the smallest value. For example, if
- Given arbitrary 4 numbers in a list, write one-line command to calculate the difference between the largest value and the smallest value. For example, if the four values are given in a list x = [1,2,3,4], then the answer should be 3 (3 = 4 - 1)
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
