Question Engine for Trivia Queston DB
Project description
Quiz Engine for Trivia
Getting Started
Quiz Engine for Trivia module
Easy to create a quiz game by using this module.
Prerequisites
You have python 3 installed.
Use
In a terminal do following
pip install tirsvadCLI-quiz_engine_4_trivia
from main import QuizEngine
quiz = QuizEngine()
while quiz.still_has_questions():
print(f"Your score : {quiz.score}")
q_text = quiz.next_question()
user_answer = input(f"Q.{quiz.question_number}: {q_text}")
if quiz.check_answer(user_answer):
print("You are right")
else:
print("You are wrong")
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Fork the Project
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
Example
git checkout -b feature
git commit -m 'Add my feature enhance to project'
git push origin feature
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for quizengine4trivia_tirsvadcli-0.0.4.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 478901feb7c85b410ef8d3b6b1b779acfa7166016a160ae332bb64b25d2c1b13 |
|
MD5 | 296dd3280377c91f22fca261b513f49e |
|
BLAKE2b-256 | c6edae1c09a388f9e091376146a52d2e89b3d3f78514dc20be00e2ff4905b073 |
Close
Hashes for QuizEngine4Trivia_TirsvadCLI-0.0.4.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f10b3cb3dd62be5f1e8f412df9ba7065cb2e7d3eae5e93cb9d8e375f9f6f9f79 |
|
MD5 | 0704ea758b4a6a760d7b0c15c1da1d2b |
|
BLAKE2b-256 | 604bebe50bc3a9d4e2b4612eab8d156304f2c52a6660d39950304201067c7cc5 |