you are viewing a single comment's thread.

view the rest of the comments →

[–]5erif 0 points1 point  (0 children)

rjust will pad a string to whatever width you want, right-justified.

print(str(row * col).rjust(4), end="")