Quiz Application in Python usig opentdb
Quiz Application in Python usig opentdb
opentdb is open-source API for providing questions with answers, its either multiple choice and boolean like true or false. The list of questions will be range from min 1 to max 50 , from the questions posted by the user in opentdb, it fetch the questions related to your category like science ,computer,etc..
{
"amount"=10,
"category":"Entertainment: Video Games",
"type":"boolean",
"difficulty":"medium"
}
"type" : "boolean" refers to true or false questions,
"type" : "multiple" refers to multiple choice questions
"amount"=10 -> Number of questions
"difficulty":"medium" ->level of difficulty
"category":"Entertainment: Video Games" -> Category of questions
In this project we have 4 modules
start.py # the application run from here
quiz_data.py # This module get data from opentdb api
question_main.py # This works all processing like score, next question to display,
quiz_ui.py # The gui interface of application work done here
1
2
3
For source check my github