Skip to content

BhatNishanthGanesh/Consti_quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation


Constitution Exam Quiz App using Python with tkinter

This is a simple quiz application written in Python using the tkinter library, which provides a graphical user interface for the quiz.

How to Run the Quiz App

  1. Make sure you have Python installed on your system.

  2. Open a terminal or command prompt.

  3. Navigate to the directory containing the Python script quiz_app.py.

  4. Run the script using the following command:

    python quiz_app.py
    
  5. The quiz app window will appear, and you can start the quiz.

How the Quiz Works

  • The quiz displays a series of multiple-choice questions.
  • You can select one of the provided options for each question.
  • Click the "Next" button to move to the next question.
  • After completing all the questions, the quiz will display your score.

Code Structure

  • quiz_app.py: The main Python script containing the quiz application logic.
  • questions: A list of questions for the quiz.
  • options: A list of options for each question.
  • answers: A list of correct answers for each question.
  • QuizApp class: Implements the quiz application using tkinter.
  • The app displays questions, options, tracks scores, and allows the user to navigate through the quiz.