๐ฏ A fun and interactive command-line quiz game built using Python. Challenge yourself with multiple-choice questions, track your score, and receive personalized feedback based on your performance.
- โจ Multiple-Choice Questions โ Every question has 4 possible answers.
- โจ Score Tracking โ Calculates and displays your total score.
- โจ Performance Feedback โ Get motivational results at the end.
- โจ Question Navigation โ Option to move to the next question.
- โจ Restart Capability โ Replay the quiz anytime.
- โจ Extendable โ Easily add new questions.
Language: Python 3.x
Core Concepts:
- Classes & Objects
- Encapsulation
- User Input Handling
- Score Calculation
CLI-based User Interface
1๏ธโฃ Clone the repository:
git clone https://github.com/your-username/quiz-app.git
cd quiz-app
2๏ธโฃ Run the program:
python quiz_app.py
โ Thatโs it โ your quiz app is ready!
๐ฎ How to Play
- The app will display a question with 4 options.
- Enter your answer (e.g., Paris or 3).
- After each question, decide whether to continue or stop.
- At the end, see your score, percentage, and feedback.
Question 1: What is the capital of France?
1. London
2. Berlin
3. Paris
4. Madrid
Your answer: 3
Do you want to go to the next question? (y/n): y
Question 2: Which planet is known as the Red Planet?
1. Venus
2. Mars
3. Jupiter
4. Saturn
Your answer: Mars
Do you want to go to the next question? (y/n): y
๐ Results Example:
Quiz Completed! ๐
You scored 4 out of 5 (80.00%)
Excellent! You are a quiz master! ๐
quiz-app/
โโโ quiz_app.py # Main program file
โโโ README.md # Documentation
- ๐น Add timer per question โณ
- ๐น Randomize question order ๐ฒ
- ๐น Load questions from JSON/CSV file ๐
- ๐น Add categories & difficulty levels ๐ฏ
- ๐น Create a GUI version (Tkinter / PyQt) ๐ฅ๏ธ
- ๐น Build a Web App version with Flask/Django ๐
Contributions are welcome! ๐
Fork the repo ๐ด
Create a new branch ๐ฑ
Add features / fix bugs ๐ ๏ธ
Submit a pull request ๐
Crafted with โค๏ธ by Mantra Patil
๐ก Learning is fun โ keep quizzing yourself!