Skip to content

aayushivaish/Python-CLI-Quiz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-CLI-Quiz

A CLI Python Quiz App which throws 5 random questions to the Player and the Player has to answer them to Test his General Knowledge.

⌨️ To Start the Quiz

:~$ python3 main.py

or simply

python main.py

To Add the Quiz in your Script, simply just Fork the Repo and import start_quiz

from quiz import start_quiz

And Pass The Questions with it

start_quiz(questions)

Question JSON Format

{
    "questions":
    [
      {
        "question": "What is the Capital of Uttar Pradesh?",
        "option1": "Kanpur",
        "option2": "Lucknow",
        "option3": "Noida",
        "option4": "Varanasi",
        "correct_answer": "option2"
      }
    ]
 }

⚠️ Upcoming Changes

  • Integration with the QUICK QUIZ API

PRs will only be accepted from the assigned Person Only

Please do leave a ⭐ to support the Repo !!!

About

A Basic CLI Python Quiz Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%