student name — student roll number
File: submissions/sample_solutions.ipynb
Total: 13/17 (76.47%)
**Return:** A string like `'5 is Positive'`, `'-2 is Negative'`, or `'0 is Zero'`
| Assertion | Status | Score | Error |
|---|
| assert check_number(5) == "5 is Positive" | passed | 1 | |
| assert check_number(-2) == "-2 is Negative" | passed | 1 | |
| assert check_number(0) == "0 is Zero" | passed | 1 | |
**Example:** Input `5` → `15`
**Return:** Integer sum of all numbers from 1 to n.
| Assertion | Status | Score | Error |
|---|
| assert sum_1_to_n(5) == 15 | passed | 1 | |
| assert sum_1_to_n(10) == 55 | passed | 1 | |
**Example:** Input `('banana', 'a')` → `3`
**Return:** The count of that letter in the word.
| Assertion | Status | Score | Error |
|---|
| assert count_letter("banana", "a") == 3 | passed | 1 | |
| assert count_letter("apple", "p") == 2 | passed | 1 | |
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| assert even_numbers_1_to_10() == [2, 4, 6, 8, 10] | passed | 1 | |
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** 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 | |
**Hint:** Use `pd.read_csv(dataset_path)`
**Return:** The first 5 rows as a DataFrame.
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 6, in <module>
NameError: name 'load_head' is not defined
|
**Return:** A tuple like `(rows, columns)`
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 11, in <module>
AssertionError
|
**Return:** A list of column names.
| Assertion | Status | Score | Error |
|---|
| assert isinstance(result, list) | passed | 1 | |
| assert result == ['Name', 'Team', 'Position', 'Height', 'Weight', 'College', 'Salary'] | passed | 1 | |
| assert len(result) == 7 | passed | 1 | |
**Example:** If column name is `'Sales'`, return the mean of that column.
**Hint:** Use `df[column_name].mean()`
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 9, in <module>
AssertionError
|
**Example:** `filter_by_value(dataset_path, 'Region', 'East')`
**Return:** Filtered DataFrame
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 8, in <module>
AssertionError
|
student name — student roll number
File: submissions/student_notebook.ipynb
Total: 0/10 (0.0%)
**Return:** A string like `'5 is Positive'`, `'-2 is Negative'`, or `'0 is Zero'`
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in <module>
AssertionError
|
**Example:** Input `5` → `15`
**Return:** Integer sum of all numbers from 1 to n.
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in <module>
AssertionError
|
**Example:** Input `('banana', 'a')` → `3`
**Return:** The count of that letter in the word.
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in <module>
AssertionError
|
**Return:** `[2, 4, 6, 8, 10]`
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in <module>
AssertionError
|
**Example:** Input `(4, 8, 10)` → `7.3333...`
**Return:** Arithmetic mean of the three numbers.
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in <module>
TypeError: type NoneType doesn't define __round__ method
|
**Hint:** Use `pd.read_csv(dataset_path)`
**Return:** The first 5 rows as a DataFrame.
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 7, in <module>
AssertionError
|
**Return:** A tuple like `(rows, columns)`
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 7, in <module>
AssertionError
|
**Return:** A list of column names.
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 7, in <module>
AssertionError
|
**Example:** If column name is `'Sales'`, return the mean of that column.
**Hint:** Use `df[column_name].mean()`
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 7, in <module>
AssertionError
|
**Example:** `filter_by_value(dataset_path, 'Region', 'East')`
**Return:** Filtered DataFrame
| Assertion | Status | Score | Error |
|---|
| [context setup] | failed | 0 | Traceback (most recent call last):
File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 35, in run_assertions
exec(context_code, student_namespace)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 7, in <module>
AssertionError
|