1、 When Python It appears that TypeError: ‘builtin_function_or_method’ object is not subscriptable
Traceback (most recent call last):
File "C:\Users\18084\Desktop\python\python\motocycles.py", line 192, in <module>
list.insert[0,'tony']
TypeError: 'builtin_function_or_method' object is not subscriptable
Reason brackets are used incorrectly ( You should use parentheses , Used as square brackets );
2、 Generally, this error :
uiltin_function_or_method' object is not subscriptable
It's all caused by brackets ,( For example, parentheses should be used , Used as square brackets ), Or missing parentheses , Check whether the brackets are used incorrectly .