WolframAlpha's Unlimited AI-generated practice problems and answers API wrapper.
Project description
problemator - WolframAlpha's Unlimited AI-generated practice problems and answers API wrapper.
-How to use-
from problemator import *
from random import choice
loadSession() # Initialize
print(getCategories()) # See categories
category = getCategoryByID(0) # Get Addition by ID
category = getCategoryByName('Add') # Get Addition by Name
# LVL: 0 - Beginner; 1 - Intermediate; 2 - Advanced
# Count - Number of problems
# type - Category
problems = generateProblems(count=10, lvl=0, type=category)
problem = choice(problems) # Get random problem
print(problem['text']) # Text of the problem
print(problem['image']) # Image of the problem
print(problem['difficulty']) # Difficulty of the problem
c = checkProblem(problem, 'x+5') # Check problem, where x+5 - answer
print(c['correct']) # True or False
print(c['hint']) # Image of the Hint
print(c['solution']) # Image of the Solution
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
problemator-1.0.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for problemator-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1abacd8386b348d766c843cceb3ad34619e96f211e9876ca6dca6bbf2f0bed16 |
|
MD5 | b9e7b4366b2f095ee3ffbd3af9d89425 |
|
BLAKE2b-256 | 3e4f4f25b4e3c920692a68c41988500fe60402e141c1f3835adbda7546ec1dc8 |