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 Problemator
from random import choice
p = Problemator() # Initialize
print(p.categories) # See categories
category = p.get_category(0) # Get Addition
# LVL: 0 - Beginner; 1 - Intermediate; 2 - Advanced
# Count - Number of problems
# type - Category
problem = p.generate_problem(lvl=0, type=category) # Generate a problem
print(problem['text']) # Text of the problem
print(problem['image']) # Image of the problem
print(problem['difficulty']) # Difficulty of the problem
result = p.check_problem(problem, 'x+5') # Check problem, where x+5 - answer
print(result['correct']) # True or False
print(result['hint']) # Image of the Hint
print(result['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.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for problemator-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5826a722d1af7b1457549d8ab936af9e69f6844e9b97cd52a41bbfb37939675d |
|
MD5 | 5971f50f23e2abd99c574210bd639b47 |
|
BLAKE2b-256 | b4159722ed1cab48bf9e48304a8f3810b65f8a35da9bb7e67228f3f51131b01b |