Join a list of lists together into 1 list in Python

Posted by dotty on Stack Overflow See other posts from Stack Overflow or by dotty
Published on 2010-06-15T14:40:57Z Indexed on 2010/06/15 14:42 UTC
Read the original article Hit count: 229

Filed under:
|
|

Hay All.

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 1 list, so the output will be something like

[Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj,Obj]

Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about list