python - TypeError: 'builtin_function_or_method' object is ...
Sorted by: 6. Check out your line. abb = abb.lower ().split. (and compare it the correct line above it). You don't call the function, you just assign abb to the same object as the method split itself. Hence when you try abb [0], it tries to subscript the function itself. Share. Follow.