sugaroid.trivia package

Submodules

sugaroid.trivia.trivia module

class sugaroid.trivia.trivia.SugaroidTrivia[source]

Bases: object

Prepares a sugaroid trivia database to ask the users some random questions from the trivia db.

This can be used as

>>> strivia = SugaroidTrivia()
>>> print(strivia.ask())
>>> # get the answer
>>> strivia.ch()
ask() str[source]
check_answer(answer: str) bool[source]

sugaroid.trivia.triviadb module

Module contents