When I run the following code in Python 2.5.2:
for x in range(1, 11): print \'{0:2d} {1:3d} {2:4d}\'.format(x, x*x, x*x*x)
I get:
Which Python version do you use?
Edit For Python 2.5, use "x = %s" % (x) (for printing strings)
"x = %s" % (x)
If you want to print other types, see here.