#Q1//Write a Python program to get a list, sorted in increasing order by the last element in each tuple from a given list of non-empty tuples #code def last(n): return n[-1] def sort_list_last(tuples): return sorted(tuples, key=last) print(sort_list_last([(6, 2), (2, 8), (6, 9), (2, 3), (2, 1)])) #Q2//Write a Python program to print a specified list after removing the 0th, 4th and 5th elements, Sample List : [‘Red’, ‘Green’, ‘White’, ‘Black’, ‘Pink’, ‘Yellow’],Expected Output : [‘Green’, ‘White’, ‘Black’] #CODE color = ['Red', 'Green', 'White', 'Black', 'Pink', 'Yellow'] color = [x for (i,x) in enumerate(color) if i not in (0,4,5)] print(color)