This project is a simple Python-based Quiz Game where the user is asked multiple-choice questions (MCQs). The game displays each question with four options and allows the player to input their answer. If the player selects the correct answer, they win a prize amount. If incorrect, the game stops.
This project demonstrates the use of:
- Lists
- Loops
- Conditional statements
- User input
- Basic game mechanics
-
Includes 11 questions stored in a structured list format.
-
Each question contains 4 options (a–d).
-
User answers by entering a number (1–4).
-
Correct answers increase the prize amount.
-
Game ends automatically upon the first wrong answer.
-
Displays:
- Question
- Feedback (correct/incorrect)
- Prize won after each correct answer
- List of lists to store structured quiz data
- Iteration using for-loop
- Input handling
- Conditional checks with if–else
- f-strings for formatted output
- Python 3.8 or above
- Any editor (VS Code, PyCharm, IDLE)
-
Install Python from: https://python.org
-
Save your code as quiz.py
-
Run using:
python quiz.py
-
Run the program.
-
Read the displayed question and four options.
-
Enter your answer:
1→ Option a2→ Option b3→ Option c4→ Option d
-
If correct → Prize increases, next question appears.
-
If incorrect → Game ends immediately.
-
Player sees the total prize won.
There is no external dataset. All questions and answers are manually written inside Python lists.
What is the capital of France?
a. Berlin
b. Paris
c. Rome
d. London
Enter your answer:
2
Correct Answer
You won 320000
Incorrect, the correct answer was 3
Better luck next time!
- Demonstrates creation of a command-line quiz application.
- Easy-to-expand question list structure.
- Uses simple and effective game logic.
- Helps in practicing Python fundamentals.
You can extend this project by adding:
- Lifelines (50–50, skip, audience poll)
- Timer for each question
- GUI version using Tkinter
- Random question selection
- High-score saving
- Sound effects using pygame
Name: Prasad Project: Python Quiz Game Institution: MREM Tools Used: Python 3,