Step 3 – Asking a question
The next thing to do is to ask the first question.
IMPORTANT: Make the first question a multiple choice question. This is easier to code for now.
You can always change the order of questions around later on.
To do that we need to use print alongside a new command: input.
Asking a question
So, let's ask the first question.
Add this underneath the code you already have
Type this print code first: print("Question 1: what is the capital of France?")- Run this now. You can see that it just prints like before
- Now we need to give the possible answers. Do these one on each line – use the screenshot to give you the code
- Run it again. Make sure it looks OK and makes sense
Make any changes to your code that you think you need.
Then we need to get an answer...