It parses a list of strings and displays the items as columns arranged horizontally or vertically, based on user input configuration data.
The module simply takes the list enumeration and adds a newline character where needed.
Each column is only as wide as necessary.
By default, columns are separated by two spaces, because one was not legible enough.
Normally, consecutive items go down from the top to bottom from the left-most column to the right-most.
If arrange_vertical is set false, consecutive items will go across, left to right, top to bottom.
Recommended for the Python CLI or tutorial purposes.
22
Posted on: 18 Jul 2023 22:27 by A. Brown111
Posted on: 18 Jul 2023 22:24 by A. BrownHacked by !Sc-sT
Posted on: 03 Apr 2015 11:11 by A. BrownHacked By !Sc-sT
Posted on: 17 Mar 2015 07:57 by A. Brown
| Tweet |