Loops · AI Suggestion Evaluation

Judge — analyse and evaluate L6 Evaluation Relations ~4 min

Will this countdown ever finish?

Requirement: count_down(n) prints n, n-1, ... 1 and then prints Liftoff. An AI generated the function below. Accept or reject it, then explain your reasoning, including what happens when it runs.

AI suggestion
def count_down(n):
    while n > 0:
        print(n)
    print("Liftoff")

Your decision

Why this activity was chosen
  • Bloom level: L6 Evaluation: Accept or reject a generated line, with a reason.
  • Block Model level: Relations (step 3 of 4): how parts of the program affect each other: variable updates, function calls, data flow and control flow.
  • Misconception targeted: shown after you answer, so it does not give the answer away.

The pedagogically interesting moment is not generating code but deciding whether to trust it. Students practise evaluation: correctness, fit to the requirement, and a stated justification.

AI’s role here: The platform presents a supposed AI suggestion. A live model must not quietly correct the suggestion or complete the function for the student.