04: Python: Variables

Extend it:

Use and store data in variables
Python Variables: Use and store data in variables

Now that we’ve learnt how to ask the user a question and store the answer they give in a variable, you can go back and make your code from the output activity slightly more ‘intelligent’ so that it reacts to what the user says.

Here’s a starting point for a chatbot.


There’s only one challenge this time but you can choose whatever questions you want your chatbot to ask.

You must ask at least 5 questions and save the answer to each question into different variables.

3 thoughts on “04: Python: Variables

Leave a Reply

Your email address will not be published. Required fields are marked *