This Python quiz is an interactive command-line game that tests your knowledge of Python, MySQL, Pandas, Django, and NumPy. The quiz contains a total of 40 questions divided into the following categories:
- 10 questions related to Python and MySQL
- 10 questions related to Python and the Pandas library
- 10 questions related to Python and the Django framework
- 10 questions related to Python and the NumPy library
Each question has four possible options (A, B, C, or D), and the user is prompted to select the correct answer. The quiz provides immediate feedback on the user's answers, displaying "Correct!" for a correct answer and "Wrong answer." for an incorrect one. The user's final score will be displayed at the end of the quiz.
You must have Python 3.x installed on your system to run this script. You can download and install Python from the official website: https://www.python.org/downloads/
-
Clone this repository or download the
python_quiz.py
script. -
Open a terminal or command prompt and navigate to the directory containing the script.
-
Run the following command:
-
The quiz will begin, and you will be prompted to answer each question by entering the appropriate option (A, B, C, or D). You can enter the options in either uppercase or lowercase letters.
-
After completing all 40 questions, your final score will be displayed.