Autograder demo: Quitting grading early

Because the Python autograder runs test cases in sequential order, we provide the capability to stop grading early, e.g. if there is some later test case that depends on the successful result of an earlier one. This can be done implicitly in most checks by passing accuracy_critical=True, or by specifically calling feedback.finish().

For some number $x$ given as the variable x, compute $y=x^2$ and store this as y.

Finally, compute $z=\sqrt{y+1}$ and save this as z.

The setup code gives the following variables:

Name Type Description
x floating point number $x$

Your code snippet should define the following variables:

Name Type Description
y floating point number $y=x^2$
z floating point number $z=\sqrt{y+1}$
user_code.py

Correct answer

Student view placeholder

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

Staff information

Question

Title:
Autograder demo: Quitting grading early

Variant

Started at:
2026-09-19 10:06:59 (CDT)
Duration:
0s
Show/Hide answer
{}
History
dec frac
rad deg