Creating a PrairieLearn question#
There are three important files created for the PrairieLearn platform:
info.json: A.jsonfile that contains metadata about the unique ID, tags, and whether it’s manually graded, auto-graded, or externally graded.question.html: An.htmlfile where you assemble your question using question elements, plus your own text, figures, etc.server.py: The.pyfile is where you add logic and randomization to your question. Variables from server.py can be accessed within question.html using{{ }}(moustache templating). It contains all the import statements as well as the variables and correct answers defined in the code section. This tells PrairieLearn how to calculate the correct answer, what the question is, what the different variables are and how to randomise the questions.