python TypeError: 'list' object is not callable code example
Example 1: list object is not callable
# Access elements with brackets
L1[i] * L2[i]
# NOT Like this
L1(i) * L2(i)
Example 2: 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.