Madhavan Rajkumar — 2423029
File: 2423029 Student Notebook.ipynb
Total: 11/24 (45.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'average_of_three' is not defined
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'average_of_three' is not defined
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'average_of_three' is not defined
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'square_number' is not defined
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'square_number' is not defined
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'squares_1_to_n' is not defined
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
Vansha — 2423059
File: 2423059.ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Aarav Srivastava — 2423064
File: Aarav.ipynb
Total: 7/24 (29.17%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_11>", line 2, in check_password
NameError: name 'python' is not defined
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_11>", line 2, in check_password
NameError: name 'python' is not defined
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_11>", line 2, in check_password
NameError: name 'python' is not defined
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Hardik Wadhwa — 2423018
File: My python.ipynb
Total: 23/24 (95.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Aaryak Garg — 2423003
File: Python Practice Exam.ipynb
Total: 20/24 (83.33%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Raj Sapre — 2423035
File: Raj Sapre [2423035].ipynb
Total: 21/24 (87.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Rishi Nandan — 2423039
File: Rishi 2423039.ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_numbers_1_to_n' is not defined
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Aarav Nagpal — 2423001
File: aarav 1.ipynb
Total: 24/24 (100.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Alwin Byju — 2423006
File: alwin.ipynb
Total: 24/24 (100.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Suditi J Shetty — 2423053
File: in class python .ipynb
Total: 18/24 (75.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Karanam Shrikara — 2423024
File: karanam_shrikara.ipynb
Total: 24/24 (100.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Korada Sravyasree — 2423026
File: notebooks_student_notebook (3).ipynb
Total: 4/24 (16.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
Alisha John — 2423022
File: notebooks_student_notebook(1).ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_7>", line 3, in even_numbers_1_to_n
TypeError: unsupported operand type(s) for %: 'list' and 'int'
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_19>", line 2, in squares_1_to_n
ValueError: invalid literal for int() with base 10: ''
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
Janya Madaan — 2423019
File: notebooks_student_notebook(2).ipynb
Total: 8/24 (33.33%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
student name — student roll number
File: notebooks_student_notebook(3).ipynb
Total: 0/24 (0.0%)
Student did not customize name/roll_number.
| Assertion | Status | Score | Error |
|---|
| [missing student identity] | failed | 0 | Student notebook missing personalized name/roll_number. Please define:
name = 'Your Name'
roll_number = 'Your Roll Number'
|
Korada Sravyasree — 2423026
File: notebooks_student_notebook(4).ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_7>", line 3, in even_numbers_1_to_n
TypeError: unsupported operand type(s) for %: 'list' and 'int'
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_19>", line 2, in squares_1_to_n
ValueError: invalid literal for int() with base 10: ''
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
Riddhi — 2423038
File: notebooks_student_notebook(5).ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Vaiidit Jaiswal — 2423058
File: notebooks_student_notebook(6).ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Ritika — 2423040
File: notebooks_student_notebook.ipynb
Total: 18/24 (75.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Alisha John — 2423022
File: student_notebook (1) (1) (1)(1).ipynb
Total: 6/24 (25.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
jivitesh arora — 2423021
File: student_notebook (1) (1) (1).ipynb
Total: 10/24 (41.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'average_of_three' is not defined
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'average_of_three' is not defined
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'average_of_three' is not defined
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
jivitesh arora — 2423021
File: student_notebook (1) (1).ipynb
Total: 5/24 (20.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'check_password' is not defined
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'check_password' is not defined
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'check_password' is not defined
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Anubhav Swaub — 2423007
File: student_notebook (1)(1).ipynb
Total: 15/24 (62.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_numbers_1_to_n' is not defined
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Suditi J Shetty — 2423053
File: student_notebook (1)(2).ipynb
Total: 17/24 (70.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'squares_1_to_n' is not defined
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
RASHIMA MALHOTRA — 2423036
File: student_notebook (1)(3).ipynb
Total: 18/24 (75.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Veeranala Dheepthimai sai — 2423060
File: student_notebook (1)(4).ipynb
Total: 16/24 (66.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Soumya Purohit — 2423052
File: student_notebook (1)(5).ipynb
Total: 11/24 (45.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
shivam agarwalla — 2423047
File: student_notebook (1)(6).ipynb
Total: 8/24 (33.33%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'squares_1_to_n' is not defined
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_17>", line 2, in sum_1_to_n
TypeError: 'type' object is not iterable
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_17>", line 2, in sum_1_to_n
TypeError: 'type' object is not iterable
|
Utkarsh Agarwal — 2423057
File: student_notebook (1)(7).ipynb
Total: 13/24 (54.17%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'check_password' is not defined
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'check_password' is not defined
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'check_password' is not defined
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_numbers_1_to_n' is not defined
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'even_or_odd' is not defined
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Nitya Deshpande — 2423033
File: student_notebook (1)(8).ipynb
Total: 3/24 (12.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Aravind_Anilkumar — 2423008
File: student_notebook (1)(9).ipynb
Total: 24/24 (100.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Nehal Ranka — 2423032
File: student_notebook (1).ipynb
Total: 14/24 (58.33%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Arundathi — 2423023
File: student_notebook (2)(1).ipynb
Total: 10/24 (41.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'squares_1_to_n' is not defined
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Pavni Sharma — 2423034
File: student_notebook (2)(2).ipynb
Total: 6/24 (25.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
shivansh gupta — 2423048
File: student_notebook (2)(3).ipynb
Total: 16/24 (66.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'larger_number' is not defined
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'numbers_1_to_n' is not defined
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'square_number' is not defined
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'square_number' is not defined
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
Devjyoti Nayak — 2423012
File: student_notebook (2)(4).ipynb
Total: 23/24 (95.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Meetha — 31
File: student_notebook (2).ipynb
Total: 9/24 (37.5%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'count_letter' is not defined
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'count_letter' is not defined
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'count_letter' is not defined
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: larger_number() takes 1 positional argument but 2 were given
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: larger_number() takes 1 positional argument but 2 were given
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: larger_number() takes 1 positional argument but 2 were given
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Hardik Wadhwa — 2423018
File: student_notebook (copy).ipynb
Total: 24/24 (100.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
Akshaya S — 2423005
File: student_notebook(1).ipynb
Total: 7/24 (29.17%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Akshaya S — 2423005
File: student_notebook(2).ipynb
Total: 10/24 (41.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'squares_1_to_n' is not defined
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
NameError: name 'sum_1_to_n' is not defined
|
student name — student roll number
File: student_notebook(3).ipynb
Total: 0/24 (0.0%)
Student did not customize name/roll_number.
| Assertion | Status | Score | Error |
|---|
| [missing student identity] | failed | 0 | Student notebook missing personalized name/roll_number. Please define:
name = 'Your Name'
roll_number = 'Your Roll Number'
|
student name — student roll number
File: student_notebook(4).ipynb
Total: 0/24 (0.0%)
Student did not customize name/roll_number.
| Assertion | Status | Score | Error |
|---|
| [missing student identity] | failed | 0 | Student notebook missing personalized name/roll_number. Please define:
name = 'Your Name'
roll_number = 'Your Roll Number'
|
Samrath Saggu — 2423043
File: student_notebook-2(1).ipynb
Total: 5/24 (20.83%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_15>", line 4, in check_password
NameError: name 'java' is not defined
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_15>", line 4, in check_password
NameError: name 'java' is not defined
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_15>", line 4, in check_password
NameError: name 'java' is not defined
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
bismanjyot — 2423010
File: student_notebook-2-2.ipynb
Total: 4/24 (16.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Gyan — 2423017
File: student_notebook-2.ipynb
Total: 4/24 (16.67%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
TypeError: type NoneType doesn't define __round__ method
|
| assert average_of_three(3, 3, 3) == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert average_of_three(10, 0, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert even_or_odd(3) == 'Odd' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(10, 3) == 10 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert larger_number(5, 5) == 5 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert square_number(0) == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
student name — student roll number
File: student_notebook.ipynb
Total: 0/24 (0.0%)
Student did not customize name/roll_number.
| Assertion | Status | Score | Error |
|---|
| [missing student identity] | failed | 0 | Student notebook missing personalized name/roll_number. Please define:
name = 'Your Name'
roll_number = 'Your Roll Number'
|
D Trisha Rao — 2423011
File: student_notebook_2423011.ipynb
Total: 14/24 (58.33%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('PYTHON') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert check_password('java') == 'Access Denied' | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('apple', 'p') == 2 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert count_letter('python', 'z') == 0 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
File "<student_cell_7>", line 5, in even_numbers_1_to_n
NameError: name 'even' is not defined
|
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
| assert sum_1_to_n(10) == 55 | failed | 0 | Traceback (most recent call last):
File "/app/src/instantgrade/comparison/comparison_service.py", line 44, in run_assertions
exec(compile(code, "<assertion>", "exec"), ns)
File "<assertion>", line 1, in <module>
AssertionError
|
Supratim Dasgupta — 2423054
File: student_notebookofSupratim.ipynb
Total: 24/24 (100.0%)
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** The arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| assert round(average_of_three(4, 8, 10), 2) == 7.33 | passed | 1 | |
| assert average_of_three(3, 3, 3) == 3 | passed | 1 | |
| assert average_of_three(10, 0, 5) == 5 | passed | 1 | |
**Return:** A string such as `'Positive'`, `'Negative'`, or `'Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == 'Positive' | passed | 1 | |
| assert check_number(-3) == 'Negative' | passed | 1 | |
| assert check_number(0) == 'Zero' | passed | 1 | |
**Example:** Input `'java'` → `'Access Denied'`; Input `'python'` → `'Access Granted'`
| Assertion | Status | Score | Error |
|---|
| assert check_password('python') == 'Access Granted' | passed | 1 | |
| assert check_password('PYTHON') == 'Access Denied' | passed | 1 | |
| assert check_password('java') == 'Access Denied' | passed | 1 | |
**Example:** Input `('banana', 'a')`
**Return:** `3`
| Assertion | Status | Score | Error |
|---|
| assert count_letter('banana', 'a') == 3 | passed | 1 | |
| assert count_letter('apple', 'p') == 2 | passed | 1 | |
| assert count_letter('python', 'z') == 0 | passed | 1 | |
Example if n = 11 then
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_n(11) == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `4` → `'Even'`
| Assertion | Status | Score | Error |
|---|
| assert even_or_odd(2) == 'Even' | passed | 1 | |
| assert even_or_odd(3) == 'Odd' | passed | 1 | |
**Example:** Input `(4, 9)` → `9`
**Return:** The larger number.
| Assertion | Status | Score | Error |
|---|
| assert larger_number(4, 9) == 9 | passed | 1 | |
| assert larger_number(10, 3) == 10 | passed | 1 | |
| assert larger_number(5, 5) == 5 | passed | 1 | |
Example if n = 5 then
**Return:** `[1, 2, 3, 4, 5]`
| Assertion | Status | Score | Error |
|---|
| assert numbers_1_to_n(5) == [1, 2, 3, 4, 5] | passed | 1 | |
**Example:** For input `4`, return `16`
| Assertion | Status | Score | Error |
|---|
| assert square_number(4) == 16 | passed | 1 | |
| assert square_number(0) == 0 | passed | 1 | |
if n is 5
**Return:** `[1, 4, 9, 16, 25]`
| Assertion | Status | Score | Error |
|---|
| assert squares_1_to_n(5) == [1, 4, 9, 16, 25] | passed | 1 | |
**Example:** Input `5` → `15`
because 1+2
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |