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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file flatifylists-1.0.0.tar.gz.

File metadata

  • Download URL: flatifylists-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for flatifylists-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c897f8e06acbd27a3177bc34cf6d3d0d6f61b045ace17c3d400f0e4355650fa1
MD5 95d2ba082e7a60deea1193cb9abe9af6
BLAKE2b-256 998496f45b6aa54f8ed296e5e1d66d59f65345f12af1f5ffbe72cb70e1559d2e

See more details on using hashes here.

File details

Details for the file flatifylists-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: flatifylists-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for flatifylists-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7387e454d05da77661e8972ed193ec51e754728bf4b2eeb23b2ed185b5516cda
MD5 e1d0443123d1441c19ddca94c6845fd9
BLAKE2b-256 f5a4ac75fe8c3f3379422374b0df96ef4023cc34951896b86392281b0582ff8d

See more details on using hashes here.

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