problemator - WolframAlpha's Unlimited AI-generated practice problems and answers API wrapper.
-How to use-
fromproblematorimportProblematorfromrandomimportchoicep=Problemator() # Initializeprint(p.categories) # See categoriescategory=p.get_category(0) # Get Addition# LVL: 0 - Beginner; 1 - Intermediate; 2 - Advanced# Count - Number of problems# type - Categoryproblem=p.generate_problem(lvl=0, type=category) # Generate a problemprint(problem['text']) # Text of the problemprint(problem['image']) # Image of the problemprint(problem['difficulty']) # Difficulty of the problemresult=p.check_problem(problem, 'x+5') # Check problem, where x+5 - answerprint(result['correct']) # True or Falseprint(result['attempt']) # Image of the Attemptprint(result['hint']) # Image of the Hintprint(result['solution']) # Image of the Solution
About
WolframAlpha's Unlimited AI-generated practice problems and answers API wrapper.