Skip to content

Models

quizapi.QuizAPI

This dataclass represents a Question in the Quiz

Attributes:

Name Type Description
id int

id of the specific question

question str

the question itself

description Optional[str]

the full description of the question

correct_answer Optional[str]

WIP

explanation NoneType

WIP

tip NoneType

WIP

category str

the category from which the question is from

difficulty str

difficulty of the question, either Easy, Medium or Hard

answers InitVar

A list of answer options

tags InitVar

A list of Tag objects

correct_answers InitVar

A list of correct answers

multiple_correct_answers InitVar

Whether there are multiple correct answers

quizapi.Tag

Represents a Tag object Questions contain these to inform what they're related to

Attributes:

Name Type Description
name str

Tag name