Skip to content Skip to sidebar Skip to footer

Python Type Error: 'list' Object Is Not Callable

I'm getting this error with this small code content of Python27. Can anyone help me with this? Thanks in advance. Run Time Error Traceback (most recent call last): File '5eb44

Solution 1:

You have created a list named len as you can see here from the fact that you're able to index it:

len[i] = input()

So naturally, len is no longer a function that gets the length of a list, leading to the error you receive.

Answer : name your len list something else.

Solution 2:

That is what happens when you define a variable that is also a built-in function name. Change the variable len to something else.

Post a Comment for "Python Type Error: 'list' Object Is Not Callable"