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:
I believe that is a Python 3.0 feature, although it is in version 2.6. But if you have a version of Python below that, that type of string formatting will not work.
If you are trying to print formatted strings in general, use Python's printf-style syntax through the % operator. For example:
print '%.2f' % some_var