Ask coding questions

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

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 [earned 5 cycles]
View Answer

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


Hmm, I think this problem occurs to many people. I have too much work now and I don't have time to play and relax. I don't even have time to clean the house. You always have to make sacrifices. I wouldn't say I don't enjoy cleaning. I just don't have the time or energy. That's why I started using the services of a cleaning company. It's very convenient and saves time. I entrust this work to professionals, and I am happy with the result afterward. I usually use a specific site, where various cleaning services are presented. I like the fact that I can allocate my time in a quality way.