Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 377 Bytes

File metadata and controls

25 lines (15 loc) · 377 Bytes

flatifylists

Flatten nested Python lists into single-depth lists

Installation

pip install flatifylists

Example

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]

License

MIT Karishma Shukla