arg1, arg2 :numbers , iterable inputs or more than one inputs key=my_fun : built-in functions or user defined functions based on which the minimum value can be returned.
Return value is the lowest value or the list with lowest positional element (or lowest based on the input function).
Getting lowest t key value pair based on value of the dictionary
Student Name and mark is stored in a dictionary, collect the student who got the lowest mark.
Here comparison is done from left to right and based on the position of the first lowest element the list is returned ( by min() ) as minimum.
Check the below code, since first element is equal in all three lists , the comparison is done based on the 2nd element ( 1, equal in my_list2 and my_list3) and finally based on the third element my_list3 is returned as lowest.
We will use one user defined function to find out the last number of the input list and based on this last number we can get the list with highest number.