Code written by me :
def combine_sort(lst1, lst2):
comdined = sorted(lst1 + lst2)
print(comdined)
combine_sort([4, 10, 2, 5], [-10, 2, 5, 10])
code given in example:
def combine_sort(lst1, lst2):
unsorted = lst1 + lst2
sortedList = sorted(unsorted)
return sortedList
print(combine_sort([4, 10, 2, 5], [-10, 2, 5, 10]))
both program produce same output
[-10, 2, 2, 4, 5, 5, 10, 10]