[Tutor] Callable? Whats callable?

Sheila King sheila@thinkspot.net
Sun, 26 Aug 2001 08:27:48 -0700


On Sun, 26 Aug 2001 11:24:16 -0400, "epoch7" <epoch7@charter.net>  wrote
about [Tutor] Callable? Whats callable?:

:Traceback (most recent call last):
:  File "F:\Python21\reusage.py", line 10, in ?
:    y = """%s""" (x)
:TypeError: object of type 'string' is not callable
:

try changing this line:
 y = """%s""" (x)

to this:
y = """%s""" % x


At least the program runs now. I don't know if it does what you want,
but it won't give that error any more...

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/