Flatten nested Python lists into single-depth lists
pip install flatifylists
from flatifylists import flatifyList
example = [[[1,2], [3,[4,[5],6],7],8,9]]
print(flatifyList(example))
# Output: [1, 2, 3, 4, 5, 6, 7, 8, 9]MIT Karishma Shukla
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Flatten nested Python lists into single-depth lists
pip install flatifylists
from flatifylists import flatifyList
example = [[[1,2], [3,[4,[5],6],7],8,9]]
print(flatifyList(example))
# Output: [1, 2, 3, 4, 5, 6, 7, 8, 9]MIT Karishma Shukla