Ecosyste.ms: Awesome
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: about 1 month ago
JSON representation
Flatten nested Python lists into a single-depth list
- Host: GitHub
- URL: https://github.com/amhsirak/flatifylists
- Owner: amhsirak
- License: mit
- Created: 2022-02-15T15:22:19.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T00:41:48.000Z (almost 3 years ago)
- Last Synced: 2024-11-16T10:06:45.324Z (about 2 months ago)
- Topics: flatify-list, flatten, flatten-list, list, python, recursion
- Language: Python
- Homepage: https://pypi.org/project/flatifylists/
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## flatifylists
Flatten nested Python lists into single-depth lists
### Installation
```
pip install flatifylists
```### Example
```py
from flatifylists import flatifyListexample = [[[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