Creating a PrairieLearn question#

../../_images/pl_create_question.png

There are three important files created for the PrairieLearn platform:

  1. info.json : A .json file that contains metadata about the unique ID, tags, and whether it’s manually graded, auto-graded, or externally graded.

  2. question.html : An .html file where you assemble your question using question elements, plus your own text, figures, etc.

  3. server.py : The .py file 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.

Structure of PrairieLearn and Creating a Question