Skip to content

A Python script to generate a specified number of quiz questions using the quizzing API. Can be customised to select category and number of questions. Question and answer sheets generated.

Notifications You must be signed in to change notification settings

charlieb954/quiz_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

About

A Python script to generate a specified number of quiz questions using the quizzing API. Can be customised to select category and number of questions. Question and answer sheets generated.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages