This is a simple Quiz Game implemented in Python. The game presents multiple-choice questions to the player and calculates their final score based on correct answers.
- Run the Python script.
- The game will welcome you and ask if you're ready to play.
- Type
yesto start the quiz. - Answer each question by typing your response and pressing Enter.
- The game will tell you if your answer is correct or incorrect.
- After all questions are answered, your final score is calculated and displayed.
- If your score is 75% or higher, you pass; otherwise, you are encouraged to try again.
Python 3.x
- Ensure Python is installed on your system.
- Save the script as
quiz_game.py. - Open a terminal or command prompt and navigate to the script location.
- Run the script using:
python quiz_game.py
-------------------------Welcome to the Quiz Game!-------------------------
Are you ready to play? (yes/no): yes
What is the best programming language?: Python
Correct!
What is 2+8+9-1?: 10
Incorrect.
Where is Germany?: Europe
Correct!
How many continents in the World?: 7
Correct!
Your total questions is: 4.
Your final score is 75.00%).
You passed the quiz.This project is free to use.