pip install tableize
from tableize import tableize
letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o']
t = tableize(letters, cols = 5)
t.show()
a b c d e
f g h i j
k l m n o
t.flip()
t.show()
a d g j m
b e h k n
c f i l o
from tableize import tableize
t = tableize(letters, rows = 10)
t.show()
a k
b l
c m
d n
e o
f
g
h
i
j
t.switch()
t.show()
a b c d e f g h i j
k l m n o
from tableize import tableize
words = ['apple','bus','cart','drum','empty','flint','get','happy','ill','joker','kneel','lard','no','mop']
t = tableize(words, cols = 5)
t.text(bullet = '+ ', spaces = 2, spacer = ' ')
- apple - bus - cart - drum - empty
- flint - get - happy - ill - joker
- kneel - lard - no - mop
t.text(bullet = '', spaces = 5, spacer = '~')
apple~~~~~bus~~~~~~cart~~~~~~drum~~~~~empty~~~~~
flint~~~~~get~~~~~~happy~~~~~ill~~~~~~joker~~~~~
kneel~~~~~lard~~~~~no~~~~~~~~mop~~~~~~open~~~~~~
t.write(filename = 'mytable', bullet = '+ ', spaces = 3, spacer = ' ')
mytable.txt
+ apple + bus + cart + drum + empty
+ flint + get + happy + ill + joker
+ kneel + lard + no + mop