Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 882 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 882 Bytes

quiz_generator

A Python script that pulls a number of questions from the free open trivia database.

A customised quiz can be created where:

  • The user picks a category and the number of questions required
  • Each question to printed to the user to decide whether to add it to the final quiz sheet by pressing 'y' or 'n'
  • quiz.txt (questions without answers) and quiz_answer.txt (questions and answers) files are created

Or, a random quiz can be created where:

  • The user picks the number of questions required
  • A category is picked at random and the quiz is generated
  • quiz.txt (questions without answers) and quiz_answer.txt (questions and answers) files are created

HOW TO USE

  1. Clone repository
  2. Run python3 quiz_generator.py from terminal
  3. Input number of questions required
  4. Select random or a customised quiz
  5. The quiz sheet and answer sheet will be created