typeerror ‘builtin_function_or_method’ object has no attribute ‘__getitem__’

You need to change the brackets in The_End.insert[x + 1, y] to parenthesis.

The_End.insert(x + 1, y)

It’s good practice in Python to use lowercase variable names. Uppercase is generaly used for classes.

Leave a Comment