This repository contains a simple console-based quiz game written in Python. The game presents a series of multiple-choice questions, and the player earns money for every correct answer. The game ends when the player either answers a question incorrectly or completes all the questions.
- The game consists of a list of 10 questions, each with four answer choices.
- Each question has a specific prize amount, as defined in the
levelslist. - Players input their answers by typing
a,b,c, ord. - If the player's answer matches the correct answer, they win the corresponding prize amount and proceed to the next question.
- If the player answers incorrectly, the game ends, and they take home the amount won at the last milestone.
- Question 5: If you answer the fifth question correctly, you are guaranteed to take home Rs. 10,000.
- Question 10: Completing all questions guarantees a total prize of Rs. 320,000.
- The
questionslist contains each question, its answer choices, and the correct answer index. - The
levelslist defines the prize amounts for each question. - The player's progress is tracked, and the game ends when the player provides an incorrect answer.
Which programming language is used in Facebook?
a. Python b. PHP
c. Javascript d. Nepali
Enter your answer (a-d):
-
Clone the repository:
git clone https://github.com/prashh129/KBC.git cd KBC -
Run the Python script:
python quiz_game.py
- Python 3.x installed on your system.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Suggestions for improvements, additional features, or bug fixes are welcome!
This project does not have a license. All rights are reserved. If you would like to use this code, please contact the repository owner for permission.
Thanks for checking out this project! If you have any feedback or questions, please feel free to open an issue or contact me directly.