Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pub-quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"question": "What is Orange?",
"options": ["A) The Sea", "B) The Sky", "C) Donald Trump", "D) Lemon"],
"answer": "C"
},
{
"question": "What goes best with jacket potatoes?",
"options": ["A) Cheese", "B) Beans", "C) Cheese & Beans", "D) I don't like them"],
"answer": "C"
},
# Learners can add more questions here following the same structure
]
Expand All @@ -43,4 +48,4 @@
print(f"Wrong! The correct answer was {question['answer']}.")

# Goodbye message
print("Thanks for playing the Pub Quiz!")
print("Thanks for playing the rather lame Pub Quiz!")