print
can be used to create simple text tables:
>>> heading = '| Index of Dutch Tulip Prices |'
>>> line = '+' + '-'*16 + '-'*13 + '+'
>>> print(line, heading, line,
... '| Nov 23 1636 | 100 |',
... '| Nov 25 1636 | 673 |',
... '| Feb 1 1637 | 1366 |', line, sep='\n')
...
+-----------------------------+
| Index of Dutch Tulip Prices |
+-----------------------------+
| Nov 23 1636 | 100 |
| Nov 25 1636 | 673 |
| Feb 1 1637 | 1366 |
+-----------------------------+