[Python] How do I make a flat list out of a list of lists?

Discussão em 'Python' iniciado por Stack, Junho 12, 2025.

  1. Stack

    Stack Membro Participativo

    I have a list of lists:

    [
    [1, 2, 3],
    [4, 5, 6],
    [7],
    [8, 9]
    ]


    How can I flatten it to get [1, 2, 3, 4, 5, 6, 7, 8, 9]?

    Continue reading...

Compartilhe esta Página