gottadiveintopython / mostx

Quiz Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mostx : Quiz Generator

Generates the following quiz.

B is slower than A
A is faster than C
B is faster than C
Which is the slowest one?

Supports multiple languages.
(Japanese, Korean, Traditional-Chinese, English, )

Installation

pip install --pre mostx

Usage

import mostx

print(sorted(mostx.get_available_langs()))
# => ['chinese', 'english', 'japanese', 'korean', ]

qgen = mostx.QuizGenerator(lang='english')
quiz = qgen(choices='ABC', n_adjs=1)
print(quiz)
# Quiz(
#     statements=[
#         'C is larger than A',
#         'A is smaller than B',
#         'C is larger than B',
#     ],
#     question='Which is the smallest?',
#     choices=('A', 'B', 'C'),
#     answer='A'
# )

etc

Google App (Mostx + Kivy)

About

Quiz Generator

License:MIT License


Languages

Language:Python 99.3%Language:Makefile 0.7%