Skip to main content

A simple printer of nested lists

Project description

  1. This function takes a positional arguments called "the_list","indent" and "level", 'the_list' is any Python list (of - possibly - nested lists). Each data item in the provided list is (recursively) printed to the screen on it's own line.
  2. A second argument 'indent' is set to default value 'False', which means indentation or tab-stops are not required by default. If user wants to add indentation while printing the nested list it should be set to 'True'.
  3. A Third argument 'level' is used to insert required number of tab_stops when nested list is encountered.
  4. Fourth argument 'fh' is used to specify where the output of this function should write (place to write your data to), a default value of this argument is sys.stdout so that it continues to write to the screen if no file object is specified when the function is invoked.

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

nester2023-1.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nester2023-1.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file nester2023-1.1.0.tar.gz.

File metadata

  • Download URL: nester2023-1.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for nester2023-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3a82094508d8370a2ab9334b650790a898fccf7a4af439c3e64a02ac622f2b66
MD5 134484d3bbe211b86495192b2233ce5c
BLAKE2b-256 3878c7d82a9d9d112ab229732269c232cf04e627030c1880f9f118651353ca12

See more details on using hashes here.

File details

Details for the file nester2023-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nester2023-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for nester2023-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da144217943a0c1341a7c2df623876be090c8319fc57cd9d4fb5f975d951bbfb
MD5 382dc3b234b3213ce18b78192d13ef47
BLAKE2b-256 2948666721ebf3b17fbecb39ae256c2edd1e4097326c4d6be0c19230d473356f

See more details on using hashes here.

Supported by

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