Skip to main content

Quiz Generator

Project description

Mostx : Quiz Generator

import mostx

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

qgen = mostx.QuizGenerator(lang='english')
q = qgen.generate(choices='ABC', n_adjectives=1)

for s in q.statements:
    print(s)
# B is quieter than A
# C is quieter than A
# B is quieter than C
print(q.question)  # => Which is the noisiest?
print(tuple(q.choices))  # => ('A', 'B', 'C')
print(q.answer)  # => A

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.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file mostx-0.1.0.tar.gz.

File metadata

  • Download URL: mostx-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

File hashes

Hashes for mostx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c77ecf0af148e6f96b4cbcb1243725db363d7464445892c47cbcd7825c6c77b
MD5 9476a39076af1bffda81ea64d226a9e8
BLAKE2b-256 d418f31161746008164270cf207d09b0e237a7825029647aab1e43f9e01702a1

See more details on using hashes here.

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