def flattern(nested):
result = []
if isinstance(nested, list):
for sublist in nested:
result.extend(flattern(sublist))
else:
result.append(nested)
return result
a = [[1,2],3,5,[[6,7],[8]]]
flattern(a) # [1,2,3,5,6,7,8]
list = [[1,2,3],[4,5,6]]
list = list[0]+list[1]