Skip to content

friendlycoder26/python-quiz-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Python Quiz Game (OOP Project)

This is a simple Quiz Game built using Object-Oriented Programming (OOP) in Python.
The program asks True/False questions, checks the user's answer, and keeps track of the score.


πŸš€ Features

  • OOP-based structure using Question and QuizBrain classes
  • True/False quiz format
  • Tracks score after each question
  • Clean and beginner-friendly code structure

πŸ“ Project Files

  • main.py – Runs the quiz
  • question_model.py – Contains the Question class
  • quiz_brain.py – Controls quiz logic
  • data.py – Question bank (True/False questions)

▢️ How to Run

  1. Download the project or clone the repository
  2. Open a terminal in the project folder
  3. Run:

πŸ’‘ Concepts Used

  • Classes and Objects
  • Methods and Attributes
  • Lists of objects
  • Conditional logic
  • While loops

πŸ“Œ Example Question Format

{"text": "The Sun is a star.", "answer": "True"}

## πŸ“œ License
Free to use for learning and practice.

About

A Python Quiz Game built using Object-Oriented Programming principles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages