# credit to Stack Overflow user in the source link # < : align to left. > : align to right print('{:>12} {:>12} {:>12}'.format(word_1, word_2, word_3))