Skip to content

PG970/Quiz-game-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Quiz-game-project

1. Project Overview

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

2. Features

  • 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

3. Concepts Covered

  • List of lists to store structured quiz data
  • Iteration using for-loop
  • Input handling
  • Conditional checks with if–else
  • f-strings for formatted output

4. System Requirements & Installation

Software Requirements

  • Python 3.8 or above
  • Any editor (VS Code, PyCharm, IDLE)

Installation Steps

  1. Install Python from: https://python.org

  2. Save your code as quiz.py

  3. Run using:

    python quiz.py
    

5. How to Run / How to Use

  1. Run the program.

  2. Read the displayed question and four options.

  3. Enter your answer:

    • 1 → Option a
    • 2 → Option b
    • 3 → Option c
    • 4 → Option d
  4. If correct → Prize increases, next question appears.

  5. If incorrect → Game ends immediately.

  6. Player sees the total prize won.


6. Dataset Source

There is no external dataset. All questions and answers are manually written inside Python lists.


7. Output / Result

Example (Correct Answer):

What is the capital of France?
a. Berlin
b. Paris
c. Rome
d. London
Enter your answer:
2
Correct Answer
You won 320000

Example (Wrong Answer):

Incorrect, the correct answer was 3
Better luck next time!

8. Insights Summary

  • 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.

9. Future Enhancements

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

10. Author

Name: Prasad Project: Python Quiz Game Institution: MREM Tools Used: Python 3,

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages