Rule-Based Chatbots: Alienbot - blocked at step 10

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?

Capture d’écran 2020-11-24 223742

Hey there and welcome to the forums!! :slightly_smiling_face:

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?

3 Likes

Should line 38 have self.exit_commands?

3 Likes

Spoiler alert:

Summary

Yes. :slight_smile:

3 Likes

What he said ^ :joy:

1 Like