def hebing(list1,list2):
list1_size = len(list1)
list2_size = len(list2)
ll = []
i = j = 0
while i < list1_size and j <list2_size:
if list1[i] < list2[j]:
ll.append(list1[i])
i+=1
else:
ll.append(list2[j])
j+=1
if i == list1_size:
ll+= list2[j:]
if j == list2_size:
ll+= list1[i:]
return ll
if __name__ == '__main__':
# print(str_zip("aaabbaa"))
l1 = [1,3,5,7,9]
l2 = [2,4,6,8,10]
print(hebing(l1, l2))