I'm trying to create something like this as terminal output:
VALUE A VALUE B INT C
alpha bravo 69420
charlie delta 69421
echo foxtrot 69422
I have a snippet of code from a different script to print the correct number of spaces (in this example, make it so that there are spaces after the printed value until col 64.)
print(header)
for f in files:
fLen = len(f)
fiLen = (fLen - 64)
finLen = (fiLen - fiLen - fiLen)
print(f+" "*(fiLen))
I'm not sure how to:
- Get this same operation done with less operation to keep it "pythonic",
- Scale this to multiple columns (like to automatically generate a lot more rows of that example output.