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)

https://repl.it/@superpeter/CLEAN-DAT-ROOM

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 (41) [earned 5 cycles]
View Answer
Commentshotnewtop
Klokat (41)

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