Skip to main content

Quiz Generator

Project description

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 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mostx-0.1.1.dev0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

mostx-0.1.1.dev0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page