example_task (Score: 6.0 / 6.0)

  1. Task (Score: 2.0 / 2.0)
  2. Coding free-response (Score: 2.0 / 2.0)
  3. Test cell (Score: 2.0 / 2.0)

Example Task

This is an example task. Students are asked to write code that produces some output.

Manually graded

The below is to be manually graded. First, a task ("manually graded task").

Student's task Score: 2.0 / 2.0 (Top)

Do something cool!

Next, an answer ("manually graded answer"):

In [1]:
Student's answer Score: 2.0 / 2.0 (Top)
# YOUR CODE HERE
"This is the correct answer."
Out[1]:
'This is the correct answer.'

Autograded

There are also autograded answers, with tests. The task here is to assign a=50.

In [2]:
Student's answer(Top)
# YOUR CODE HERE
a = 0
for i in range(50):
    a = a + 1
    for i in range(100):
        print(a)
1
1
1
1
1
1
1
1
1
... Output truncated ...

The tests are read-only:

In [3]:
Grade cell: cell-d81b5763f9a533ab Score: 2.0 / 2.0 (Top)
assert a == 50