A simple terminal-based Python quiz application that tests your knowledge on Naruto with multiple choice questions.
- Multiple-choice quiz with 4 options per question.
- Tracks score and number of correct answers.
- Displays Time left.
- Automatically closes and submits once time is over
- User can skip questions using
skip
command. - Clean and readable CLI interface.
- Clone the Repository
git clone https://github.com/ndigitals04/Quiz-Program.git
cd Quiz-Program
- Run the Quiz
Make sure you have Python 3 installed.
python quiz.py
-
The quiz questions are stored in a dictionary called base_questions where: Each key is a question (string).
-
Each value is a list of 4 options (the correct answer is always the first item).
-
The program presents questions randomly and shuffles the options before displaying them.
-
User selects an answer by typing 'a', 'b', 'c', or 'd'.
-
All responses are stored and analyzed at the end to calculate the user's score.
-
After completing the quiz, the user is shown their total score and the program ends.
Have suggestions or want to connect?
📱 Reach out to me on X