r/inventwithpython • u/Scrpn17w • May 09 '17
[Automate] Having trouble with printing formatted table
I'm working on the project for chapter 6 of the "Automate the Boring Stuff" (table printer) and I'm having a hard time figuring out how to properly setup my loops to go through the ljust, rjust, and center formatting. I already have code that prints the table in a 'grid" found here but I feel like it's kind of bulky code for what it does.
Can anyone help point me in the right direction to print this properly and maybe clean up my code?
1
Upvotes