On Dec 8, 2004, at 17:01, Dick Moores wrote:
I got this error msg for this line of code:
n = -(2(a**3.0)/27.0 - a*b/3.0 + c) (where a = 1, b = 2, c = 3)
And was baffled until I realized the line should be n = -(2*(a**3.0)/27.0 - a*b/3.0 + c)
But I still don't understand what "callable" means. Can someone help?
Basically, when you try to execute your first line, the program tries to call the function 2 on the argument (a**3.0). Which of course fails, because 2 is an int, not a "callable" object (function, method, lambda or class). Hence "'int' object is not callable".
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"
_______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor