Given a list of non-empty tuples, return a list sorted in increasing order by the last element in each tuple. python
def last(n): return n[-1]
def sort_list_last(tuples):
return sorted(tuples, key = last)
print(sort_list_last([(1, 7), (1, 3), (3, 4, 5), (2, 2)]))