SyntaxFix
Write A Post
Hire A Developer
Questions
This means that somewhere else in your code, you have something like:
sum = 0
Which shadows the builtin sum (which is callable) with an int (which isn't).