Welcome to Quiz Bot! This is a simple and interactive quiz application built using Python and Tkinter. The app presents a series of questions to the user and allows them to answer True or False. At the end of the quiz, the user’s score is displayed.
This App Have 50 Questions In Total
- Dynamic Questions: The app fetches questions from a data file and displays them one by one.
- Interactive UI: Built using Tkinter, the app has a user-friendly interface with buttons to submit answers.
- Score Tracking: The app keeps track of the user’s score throughout the quiz.
- Immediate Feedback: After each answer, the app provides immediate feedback and changes the background color to indicate if the answer was correct or incorrect.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/quiz-bot.git
-
Navigate to the project directory:
cd quiz-bot pip install thinter -
Ensure you have Python installed.
You can check this by running:
python --version
-
Install the required dependencies:
This project requires the
tkinterpackage, which should come pre-installed with Python. If not, you can install it using:sudo apt-get install python3-tk
-
Run the application:
python main.py
- Once you run the application, a window will pop up displaying the quiz.
- Answer each question by clicking the True or False button.
- Your score will be updated and displayed at the top of the window.
- Once you’ve answered all the questions, the app will display your final score.
- main.py: The entry point of the application where the quiz starts.
- question_model.py: Contains the
Questionclass, which handles the question text and correct answer. - data.py: Contains the question data used in the quiz.
- quiz_brain.py: Manages the quiz logic, including tracking the current question, checking answers, and keeping score.
- ui.py: Contains the
Appclass that handles the user interface and interactions with the user.
If you’d like to contribute to this project, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, feel free to reach out at discord goodgamerback
