Ask coding questions

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

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

Answered by PattanAhmed [earned 5 cycles]
View Answer
Voters
himanish1
Japoll246
Comments
hotnewtop
PattanAhmed

@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.

Japoll246

@PattanAhmed Thanks for the help

PattanAhmed

@Japoll246 Welcome!

InvisibleOne


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

If that doesn't work let me know

Japoll246

@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

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

Japoll246

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