Randomized zipped file generation

This is a question to demonstrate random generation capabilities in PrairieLearn. Specifically, this question randomly generates some files from templates, then puts them into a zip file. This zip file is then made available for download to the student.

Specifically, we generate a zip file generated_files.zip, containing two files, discussion.txt, whose contents are agent, write, finally, and agent.py, which contains a function named cultural that prints Hello world!.

Download the zipped file here: generated_files.zip

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Randomized zipped file generation

Variant

Started at:
2026-08-04 21:52:40 (CDT)
Duration:
0s
Show/Hide answer
{}
History
dec frac
rad deg