Hello!
I’m working through the Alienbot project and got till step 10 so far. Here is my code:
Now my question: why do I still get the error message in the following screenshot and can’t make it beyond the first random question?
Hello!
I’m working through the Alienbot project and got till step 10 so far. Here is my code:
Now my question: why do I still get the error message in the following screenshot and can’t make it beyond the first random question?
Hey there and welcome to the forums!!
Look back at were you defined exit_commands
. It is part of the AlienBot
class right?
Compare how you refer to variables like negative_responses
on line 31 to how you are currently using exit_commands
. How do you have to refer to a class variable from within the class?
Should line 38 have self.exit_commands?
Spoiler alert:
Yes.
What he said ^