I have an array a
as follow : [[(0,0),(2,0)],[(1,1)], [(3,8)]]
So now I want to convert it like this: [(0,0),(2,0),(1,1), (3,8)]
How may I do that?
I had tried bellow code and successed, but I need some ideas better and faster.
nresult = []
for i in range(len(result)):
arr = result[i]
for j in range(len(arr)):
nresult.append(arr[j])
Can someone help me?
Thanks!