Define a function called range that takes 3 numbers as parameters and returns their range (which is maximum - minimum value of those numbers). For e.g. the range of numbers: 3, 2, 7 is 7-2 = 5. Sample command => output: (display (range 3 2 7)) => 5, (display (range 9 1 7)) => 8
Answers
Answered by
1
Explanation:
Definition. The range() function is a built-in-function used in python, it is used to generate a sequence of numbers. If the user wants to generate a sequence of numbers given the starting and the ending values then they can give these values as parameters of the range() function.
Similar questions