a = [1,3,5,7,9]
b = [2,4,6,8,10]
c= []
while len(a) > 0:
if len(b) == 0:
c.extend(a)
break
min_num = min(a[0], b[0])
if a[0] == min_num:
a.remove(a[0])
if b[0] == min_num:
b.remove(b[0])
c.append(min_num)
if len(b)> 0:
c.extend(b)