Ask coding questions

← Back to all posts
TypeError: 'builtin_function_or_method' object is not subscriptable (hellp)
Japoll246 (17)

This was answered. Thanks for all the responses they all helped in the end.

Answered by PattanAhmed (1269) [earned 5 cycles]
View Answer
Commentshotnewtop
PattanAhmed (1269)

@Japoll246 Hi,
Normally, This error will occur due to Bad Indentation
Check your program again and check how everything is!
And please comment below if you can't find anything wrong
Ready to help anytime!

Hope this helps
Please mark my answer if this helps.

InvisibleOne (506)


Hmm, one else can't be in the same line with another, you either need to use elif, or that other else has wrong indentation

InvisibleOne (506)

If that doesn't work let me know

Japoll246 (17)

@forthethethethe The problem I was having was in main.py. what would happen is you would win the level and it wouldn't load level_2. (level_2 doesn't have much of anything yet but it still should load

InvisibleOne (506)

Well I can't get to level two because of that first error with the else statements @Japoll246

Japoll246 (17)

@forthethethethe oh. I fixed that but it must not have updated here