'str' object is not callable in my cycling

python

Solution

You are missing `%` in

print '%s' % (temp.zfill(3))
           ^ THIS

Problem

``` for i in range(1, 27): temp=str(i) print '%s'(temp.zfill(3)) Traceback (most recent call last): File "<ipython console>", line 3, in <module> TypeError: 'str' object is not callable ``` I wonder why? for I want the output to like this : ``` 001 002 ``` .. ``` 021 ``` ... so I use `zfill`. But python tell me it is "`str` object is not callable" how to solve it?

Original source