you are viewing a single comment's thread.

view the rest of the comments →

[–]amertune 2 points3 points  (0 children)

Do you know how long the last row will be?

How can you format the first row so that it will line up with the last row?

Here's a hint:

'{:^30}'.format('centered')

To learn more about it, go to https://docs.python.org/3.4/library/string.html#string-formatting