from heapq import merge def combine_lists(num1,num2): combine_lists=list(merge(num1, num2)) return combine_lists