TypeError: 'list' object is not callable site:stackoverflow.com code example
Example: TypeError: 'list' object is not callable
What does "TypeError: 'list' object is not callable" mean?
To put it simply, the reason the error is occurring is because you
re-assigned the builtin name list in the script.
Python has a builtin named list.
If you reassign it to some value(eg. list = [1,2,3,4,5]) then it causes
problems in python.