user2763361 user2763361 - 1 year ago 118
Python Question

TypeError: 'float' object not callable

Why does the following generate the

TypeError: 'float' object not callable


Answer Source

It looks like you happen to assign to a variable named sum in the same scope as the call above, thereby hiding the builtin sum function.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download