+ 1
What happens when you use special reserved word as variable name
Variable
6 Antworten
+ 4
[Edited] here is an example code that causes me a headache to find the problem.
print(sum(list(map(int,str(inp2)))))
TypeError: 'int' object is not callable
https://code.sololearn.com/ccnuDzMG1732/?ref=app
+ 3
a very short sample from the console:
>>> lst = [1,2,3]
>>> sum(lst)
6
>>> sum = 0
>>> sum(lst)
TypeError: 'int' object is not callable
0
Error
0
Syntax error