A simple printer of nested lists
Project description
- 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.
- 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
Release history Release notifications | RSS feed
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.0.0.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for nester2023-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf06724adbcd5c5a4267f290c88a21ed4442eb27abe07da036bf5442866a9afc |
|
MD5 | 8b271dfac855d6b87b07a6fc49d88812 |
|
BLAKE2b-256 | 6f31744c5398669f078d6fe3a87d8b1414177bfffc195dfeeac7be47a4e9474a |