Generate beginner-friendly Moodle programming questions with tags clarification, partial answer preload scaffolding, auto-created test cases, actionable hints, and feedback about common beginner mistakes.
Generate a Moodle-ready beginner programming question that is easy to attempt, easy to grade, and clear about what the student must write.
Produce the question with these sections in this order:
Question nameQuestion textTagsAnswer preloadTest casesGeneral feedbackUse short, teacher-friendly labels and keep the wording ready to paste into Moodle.
print, read, calculate, compare, repeat, or return.Which tags should I use for this Moodle question?Answer preload section.# Write your code here# Read the input here# Calculate the result here# Print the answer herepass or a TODO comment.Example preload shape:
def solve():
# Read the input here
# Calculate the result here
# Print the answer here
if __name__ == "__main__":
solve()
Input and Expected output.TemplateGrader.testresults.got as top-level JSON from a combinator grader.General feedback.= with ==