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

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages