January 2019
Beginner
318 pages
8h 23m
English
Using the max() and min() functions, we can find the highest and lowest values from the tuple. These functions allow us to find out information about quantitative data. Let's look at an example:
>>> numbers = (50, 80,98, 110.5, 75, 150.58)>>> print(max(numbers))150.58>>>
Using max(), we will get the highest value in our tuple. Similarly, we can use the min() function:
>>> numbers = (50, 80,98, 110.5, 75, 150.58)>>> print(min(numbers))50>>>
So, here we are getting the minimum value.
Read now
Unlock full access