Using the sort () method, write an algorithm in python as a function which takes as parameter a list L of numbers and which returns the couple (min, max) formed by the minimum and the maximum of the list.
# sorting the liste
return (L , L[-1])
L = [41, 19 , 5 , 21 ,7 , 11]
print(minMax(L)) # the out put is: (5, 41)