A fun, offline, age-based quiz game written in Python that asks random questions based on the user’s age group and displays the final score.
This project is designed to:
- Attract kids & beginners to coding
- Demonstrate clean Python architecture
- Work 100% offline (no API / no internet required)
✅ Age-based quiz system
✅ Multiple age groups (kids → adults)
✅ Randomized questions every run
✅ Score tracking (correct / wrong)
✅ Simple, readable, beginner-friendly code
✅ Uses modern Python libraries (pydantic, polars)
| Age Group | Description |
|---|---|
| 1–5 years | Colors, animals, basic counting |
| 6–10 years | Simple math & general knowledge |
| 11–15 years | Science, math, logic |
| 16–30 years | Programming & general awareness |
- Python 3.9+
- Pydantic → structured question models
- Polars → fast & clean score handling
- Random → question shuffling
hybrid-quiz/
│
├── quiz.py # Main quiz program
├── README.md # Project documentation
git clone https://github.com/alok-kumar8765/quize_game.git
cd quize_gamepip install polars pydanticpython quiz.py- User selects an age group
- Program randomly selects up to 10 questions
- User answers questions one by one
- Score is tracked using Polars DataFrame
- Final result is displayed with encouragement 🎉
Choose Age Group:
1️⃣ 1-5 years
2️⃣ 6-10 years
3️⃣ 11-15 years
4️⃣ 16-30 years
Enter choice: 2
🎮 QUIZ STARTED 🎮
🤖 What is 5 + 5?
🧒 Your answer: 10
🎉 Correct!
🏆 QUIZ OVER 🏆
✅ Correct: 4
❌ Wrong: 1
🌟 Excellent work!
- 🔊 Voice-based quiz (Text-to-Speech)
- 🧠 AI-generated questions (Ollama / Gemini)
- 🌍 Multi-language support
- 🎨 GUI or Web version
- 🏆 Levels, badges & leaderboard
- 👨👩👧 Parent progress dashboard
Contributions are welcome! You can:
- Add more questions
- Add new age groups
- Improve UI/UX
- Convert to web/mobile app
This project is open-source and free to use for learning and educational purposes.
“The best way to learn coding is by playing.”
Happy Coding 🚀