Quiz Program – Part 1: the basic quiz

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.

Code helper imageAsking a question

So, let's ask the first question.

  1. Add this underneath the code you already have

    Type this print code first:  print("Question 1: what is the capital of France?")
  2. Run this now. You can see that it just prints like before
  3. Now we need to give the possible answers. Do these one on each line – use the screenshot to give you the code
  4. 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...