Geopolitics Quiz Application
Project Overview:
The Geopolitics Quiz Application is a Python-based interactive console application designed to test your knowledge of global politics, history, and current affairs. The program allows users to answer a series of multiple-choice questions and provides feedback on their performance. It calculates the total score and accuracy percentage at the end of the quiz, making it an engaging way to learn and compete with friends.
Features:
- Interactive Gameplay: Users can answer 15 carefully curated questions on geopolitics.
- Real-Time Feedback: Tracks correct and incorrect answers during gameplay.
- Scoring System: Displays total score and accuracy percentage upon quiz completion.
- Replay Option: Allows users to play the quiz multiple times for improved performance and learning.
- Dynamic User Input: Customized for each user based on their name.
How to Use:
- Run the Application: Execute the script in a Python environment.
- Enter Your Name: The application greets you personally and begins the quiz.
- Answer Questions: Each question offers 4 multiple-choice options. Select the correct one by entering the corresponding number (1/2/3/4).
- View Results: At the end of the quiz, see your total score and accuracy percentage.
- Replay or Exit: Choose to replay the quiz or exit after finishing.
Installation:
- Install Python (version 3.6 or above).
- Download the script file.
- Open the terminal or command prompt.
- Navigate to the folder containing the script.
Run the script using:
bash
Copy code
python geopolitics_quiz.py
Sample Output
vbnet
Copy code
Enter your name to start the Quiz: Alex
Hello Alex! Welcome to the Geopolitics Quiz.
Who won the America Elections in 2024?
- Kamala Harris
- Joe Biden
- Donald Trump
- Barak Obama Select the options(1/2/3/4): 3
Which country has the most permanent seats on the United Nations Security Council (UNSC)?
- France
- United States
- China
- All of the Above Select the options(1/2/3/4): 4
...
Alex scored 12 points in the Geopolitics Quiz.
Alex's accuracy percentage would be 80.00%
Do you want to play again? (Yes/No): No
Thanks for playing. Have a great day!