A multiple-choice quiz engine with questions stored in a separate data module. Features score tracking, percentage calculation, and case-insensitive answer matching.
python quiz.py- Separating data into external modules (
questions.py) - Lists of dictionaries for structured data
- Case-insensitive string comparison
- Score tracking with percentage calculation
- Dynamic option display
You will learn how to structure data in separate modules, iterate over complex data structures, and build interactive assessment tools.
09-quiz-app/
README.md
questions.py
quiz.py
Python Quiz
-----------
Q1: What is the output of print(2 ** 3)?
A) 6
B) 8
C) 9
Your answer: B
Correct!
You scored 4/5 (80.0%)