[Solved] Getting the TypeError – ‘int’ object is not callable [closed]


You must have used the variable – sum (int datatype) earlier which is different from the inbuilt function sum() you are trying to call.

Hence, it is usually not advisable to use pre-defined in-built function names for variables.

1

solved Getting the TypeError – ‘int’ object is not callable [closed]