[ create a new paste ] login | about

Link: http://codepad.org/GSOQwMB8    [ raw code | output | fork ]

Python, pasted on Feb 21:
1
2
for i in xrange(1,11):
    print '{0:2d} {1:3d}  {2:4d}'.format(i, i*i, i*i*i)


Output:
1
2
3
4
Traceback (most recent call last):
  Line 2, in <module>
    print '{0:2d} {1:3d}  {2:4d}'.format(i, i*i, i*i*i)
AttributeError: 'str' object has no attribute 'format'


Create a new paste based on this one


Comments: