Source

stackoverflow / 792721.py

Full commit

"""
Python 2.6, 3 code

for x in range(1,11):
  print '{0:2d} {1:3d} {2:4d}'.format(x, x*x, x*x*x)
"""

for x in range(1,11):
  print '{0:2d} {1:3d} {2:4d}'.format(x, x*x, x*x*x)

print

for x in range(1,11):
  print '%2d %3d %4d' % (x, x*x, x*x*x)