May-02-2020, 11:40 PM
I'd prefer to use a nice library, but the flatten in more-itertools unpacks all the elements in the list exactly one level. It won't cope with the
9
in the OP list.
Problem in flattening list
|
|
Messages In This Thread |
Problem in flattening list - by Shahmadhur13 - May-02-2020, 03:52 PM
RE: Problem in flattening list - by pyzyx3qwerty - May-02-2020, 03:57 PM
RE: Problem in flattening list - by bowlofred - May-02-2020, 04:03 PM
RE: Problem in flattening list - by DeaD_EyE - May-02-2020, 10:31 PM
RE: Problem in flattening list - by bowlofred - May-02-2020, 11:40 PM
RE: Problem in flattening list - by DeaD_EyE - May-03-2020, 12:40 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Problem with "Number List" problem on HackerRank | Pnerd | 5 | 2,113 |
Apr-12-2022, 12:25 AM Last Post: Pnerd |
|
Flattening attribute access | ruy | 5 | 2,087 |
Jun-25-2021, 08:26 PM Last Post: ruy |
|
flattening a list with some elements being lists | Skaperen | 17 | 7,520 |
Apr-09-2019, 07:08 AM Last Post: perfringo |
|
Flattening List | mp3909 | 8 | 5,251 |
Jan-26-2018, 12:13 AM Last Post: snippsat |