A Python-based quiz application using Tkinter with multiple difficulty levels and timed questions.
- Three difficulty levels (Easy, Medium, Hard)
- 15-second timer for each question
- Progress tracking during the quiz
- Immediate feedback with score and percentage
- Clean, user-friendly interface
- Randomized question order
- Python 3.x
- Tkinter (usually comes with Python)
- CSV file with quiz questions
- Run the script:
python quiz_app.py - Select your preferred difficulty level
- Answer each question within the 15-second time limit
- View your results at the end
- Click "Restart Quiz" to play again
quiz_app.py- Main application scriptquiz_questions.csv- Question database (must be in same directory)
The quiz questions CSV file must follow this format:
- difficulty,question,option1,option2,option3,option4,answer
- easy,What is the capital of France?,London,Paris,Rome,Berlin,Paris
To add your own questions:
- Edit the
quiz_questions.csvfile - Follow the same format as the existing questions
- Save the file and restart the application
-
If you get a "File not found" error, ensure:
- The CSV file is in the same directory as the script
- The CSV file is named exactly
quiz_questions.csv - You've downloaded the complete CSV file
-
If the timer runs too fast:
- This typically indicates a system performance issue
- Try closing other applications while running the quiz
Mohammad Amir Shoaib
π» BCA Student | Front-End Web Developer
π§ astechnical112@gmail.com
π GitHub: @shoaibxbwf
PLS SUPPORT GIVE IT A STARβββββ