I have this error and I can't really find why it occurs, if anyone could help me is would be really nice, the code is pretty long so any help is really appreciated ! This error showed up after I filled the condition gamestate = MYLEVELS, however i don't understand how what I added has an impact on this specific line of code, I'm a beginner so I struggle a bit right now, here is the entire code :
it's because you did `list = []` somewhere