I have a list which consists of many lists. Here is an example,
[
[Obj, Obj, Obj, Obj],
[Obj],
[Obj],
[
[Obj,Obj],
[Obj,Obj,Obj]
]
]
Is there a way to join all these items together as one list, so the output will be something like
[Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj]
Yes, here’s one way to do it:
Please note, this creates a generator, so if you need a list, wrap it in
list():