Let's say I have an array of numbers where
list = [(4, 3, 7, 23),(17, 4021, 4, 92)]
and I want to print the numbers out in such a way so that the output looks somewhat like this:
[ 4 | 3 | 7 | 23 ]
[ 17 | 4021 | 4 | 92 ]
Where the numbers are as centered as possible and that there is enough space in between the "|" to allow a 4 digit number with two spaces on either side.
How would I do this?
Thank you.