Quiz Master is a Python command-line quiz application that presents users with multiple-choice questions in a randomized order. The program evaluates user responses, provides immediate feedback, and displays the final score at the end of the quiz.
This project was built to practice Python fundamentals, including modules, lists, dictionaries, loops, conditionals, user input handling, and the random library.
- Randomized question order
- Multiple-choice questions
- Instant feedback after each answer
- Score tracking
- Modular code structure
- Easy to expand with additional questions
Quiz/
│
├── main.py
├── questions.py
└── README.md
Contains the main quiz logic:
- Displays questions
- Accepts user input
- Checks answers
- Tracks score
- Displays the final result
Stores quiz questions, options, and correct answers in a structured format.
- Python 3
- Random Library
- Variables and Data Types
- Lists
- Dictionaries
- Loops
- Conditional Statements
- Functions
- Modules
- User Input Handling
- Randomization
- Problem Solving
- Python
- Modules
- Lists
- Dictionaries
- Random Library
- Input Validation
- Problem Solving
- Clone the repository:
git clone <repository-url>- Navigate to the project directory:
cd Quiz- Run the program:
python main.pyWelcome to the Quiz! Let's get started.
Question: What is the capital of France?
A. Paris
B. Rome
C. Berlin
D. Madrid
Your answer (A/B/C/D): A
Correct! Well done.
Question: How many continents are there?
A. 5
B. 6
C. 7
D. 8
Your answer (A/B/C/D): C
Correct! Well done.
Your score is: 2/2
- Difficulty levels
- Multiple categories
- Timer-based questions
- High-score tracking
- Question loading from external files
- Graphical User Interface (GUI)
Developed as a Python learning project to practice programming fundamentals and build problem-solving skills.