Skip to main content

Flatten nested Python lists into a single-depth list

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flatifylists-1.0.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

flatifylists-1.0.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page