Walkthrough
This walkthrough demonstrates how Quiz Whiz can be used to generate a file which can be imported into Learn.
Open the file assets/example.md
(the file is within the assets
folder). It should look like this:
This file contains quiz questions. When using the program, you will write your own file of this format.
The basic command format is python3 main.py InputFilepath --OutputType
.
Because we are importing to Learn, we change --OutputType
to --learn
:
python3 main.py assets/example.md --learn
- Open the program folder in the terminal (instructions)
- Run
python3 main.py assets/example_input.md --learn
This should yield the following output:
The program gave a warning because it detected a potential mistake. This mistake occured becasuse there is no newline between the question and answers in the first question of the example. To fix this, open assets/example_input.md
and change the first question to:
# Which ocean is the warmest?
- ^Atlantic
- Pacific
- Arctic
Save the file after adding the newline.
Rerun python3 main.py assets/example_input.md --learn
. There should now be no warnings, and the parse table shows one less essay question and one more multiple choice question, as a result of the first question now being parsed correctly.
The program created a new file which can be imported to learn. Its filepath is output/LEARN_example_input.txt
.
It can be uploaded to Learn using their instructions.
These links are also available in the sidebar to the right.
- Learn how to format all questions (Basic Question Formatting)
- Learn how to construct commands (All --settings)
- Learn how to include images, code, control properties in Moodle and more (Advanced Formatting & Properties)