Skip to main content

Printing each items in list (nested or not) on new line with or without required tab spaces/indent

Project description

Refer for commands: https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives

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. 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'. A Third argument 'level' is used to insert required number of tab_stops when nested list is encountered.

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

nester-package-1.3.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

nester_package-1.3.1-py3-none-any.whl (2.5 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