1list1 = [3,2,4,1,1]
2list2 = ['three', 'two', 'four', 'one', 'one2']
3list1, list2 = zip(*sorted(zip(list1, list2)))
1from heapq import merge
2
3# initializing lists
4test_list1 = [1, 5, 6, 9, 11]
5test_list2 = [3, 4, 7, 8, 10]
6
7# printing original lists
8print ("The original list 1 is : " + str(test_list1))
9print ("The original list 2 is : " + str(test_list2))
10
11# using heapq.merge()
12# to combine two sorted lists
13res = list(merge(test_list1, test_list2))
14
15# printing result
16print ("The combined sorted list is : " + str(res))