An open API service indexing awesome lists of open source software.

https://github.com/amhsirak/flatifylists

Flatten nested Python lists into a single-depth list
https://github.com/amhsirak/flatifylists

flatify-list flatten flatten-list list python recursion

Last synced: over 1 year ago
JSON representation

Flatten nested Python lists into a single-depth list

Awesome Lists containing this project

README

          

## flatifylists

Flatten nested Python lists into single-depth lists

### Installation

```
pip install flatifylists
```

### Example

```py
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