Ask coding questions

← Back to all posts
I can't figure out why my python 3 room cleaning simulator program is throwing an error
superpeter (2)

why is it saying that messy_things is not defined (i tried self.messy_things, it just said that self was not defined)

Answered by Klokat (42) [earned 5 cycles]
View Answer
Klokat (42)

Change gameroom.clean(self.messy_things[0]) to gameroom.clean(gameroom.messy_things[0])