# Making a quiz

In this task we have given you a starter program. It is a very simple quiz with one multiple choice question about farming. Your task is to exend this program's functionality.

This is what the quiz looks like when it is run:

This is what the code for the starter program looks like:

  1 2 3 4 5 6 7 8 9 10 11 12 13 def quiz(): print("Here is a quiz to test your knowledge of farming...") print() print() print("Question 1") print("What percentage of the land is used for farming?") print() print("a. 25%") print("b. 50%") print("c. 75%") answer = input("Make your choice: ") if answer == "c": print("Correct!") 

Extend the quiz that builds on the one shown in the video in the following ways:

• Introduce some feedback if the answer is not correct
• Give the user two chances to get the question right then tell them the answer
• Include two more questions about farming in your quiz. Some sample questions are here
• Keep a score of how many questions the user gets right

by Sue Sentance.
20 June 2011.
updated on 03 September 2014.