Evaluator Report

## Evaluator Student Report

Filter by student:

### Perfection — 007

File: submissions/sample_solutions.ipynb

Score: 22 / 29 (75.86%)

Question: question_one

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_one([1,2,2,3]) == 6 | passed | 1 |
assert question_one([]) == 0 | passed | 1 |

Question: question_two

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_two([1,2,3]) == [3,2,1] | passed | 1 |
assert question_two([]) == [] | passed | 1 |

Question: question_three

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_three([1,2,2,3]) == {1:1,2:2,3:1} | passed | 1 |
assert question_three([]) == {} | passed | 1 |

Question: question_four

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_four([[1,2],[3,4]]) == [1,2,3,4] | passed | 1 |
assert question_four([]) == [] | passed | 1 |

Question: question_five

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_five({'a':1,'b':2,'c':1}) == {1:['a','c'],2:['b']} | passed | 1 |

Question: question_six

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_six({'x':1,'y':2},{'y':3,'z':4}) == {'x':1,'y':5,'z':4} | passed | 1 |

Question: question_eight

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_eight("hello world") == ["hello","world"] | passed | 1 |
assert question_eight("") == [] | passed | 1 |

Question: question_nine

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_nine(["a","b"],"-") == "a-b" | passed | 1 |
assert question_nine([]) == | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1 assert question_nine([]) == ^ SyntaxError: invalid syntax

Question: question_ten

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_ten("I love python") == 6 | passed | 1 |
assert question_ten("") == 0 | passed | 1 |

Question: question_eleven

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_eleven([1,2,3],[2,3,4]) == {2,3} | passed | 1 |

Question: question_twelve

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_twelve([1,2,2,3,1]) == [1,2,3] | passed | 1 |

Question: question_thirteen

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_thirteen([1,2,3]) == [1,4,9] | passed | 1 |

Question: question_fourteen

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_fourteen([1,2,3,4]) == [2,4] | passed | 1 |

Question: isinstance

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(s, pd.Series) | passed | 1 |

Question: s.loc['a'] == 2 and s.loc['b'] == 1

Assertion | Status | Score | Error
--- | --- | --- | ---
assert s.loc['a'] == 2 and s.loc['b'] == 1 | passed | 1 |

Question: list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert list(out['first']) == ['John','Alice'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc return self._engine.get_loc(casted_key) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "pandas/_libs/index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7096, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'first' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/frame.py", line 4113, in __getitem__ indexer = self.columns.get_loc(key) File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3819, in get_loc raise KeyError(key) from err KeyError: 'first'
assert list(out['last']) == ['Doe','Smith'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc return self._engine.get_loc(casted_key) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "pandas/_libs/index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7096, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'last' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/frame.py", line 4113, in __getitem__ indexer = self.columns.get_loc(key) File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3819, in get_loc raise KeyError(key) from err KeyError: 'last'
assert list(out['id']) == [2] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc return self._engine.get_loc(casted_key) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "pandas/_libs/index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7096, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'id' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/frame.py", line 4113, in __getitem__ indexer = self.columns.get_loc(key) File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3819, in get_loc raise KeyError(key) from err KeyError: 'id'
assert list(out['val'])==[4,2] and list(out['key'])==['a','b'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc return self._engine.get_loc(casted_key) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "pandas/_libs/index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7096, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'val' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/frame.py", line 4113, in __getitem__ indexer = self.columns.get_loc(key) File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3819, in get_loc raise KeyError(key) from err KeyError: 'val'
assert list(out['num'])==[1,9,3] | passed | 1 |

Question: out.iloc[0]['x'] == 20 and out.iloc[0]['y'] == 200

Assertion | Status | Score | Error
--- | --- | --- | ---
assert out.iloc[0]['x'] == 20 and out.iloc[0]['y'] == 200 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc return self._engine.get_loc(casted_key) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "pandas/_libs/index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 7096, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'x' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/series.py", line 1133, in __getitem__ return self._get_value(key) ~~~~~~~~~~~~~~~^^^^^ File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/series.py", line 1249, in _get_value loc = self.index.get_loc(label) File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/.venv/lib/python3.13/site-packages/pandas/core/indexes/base.py", line 3819, in get_loc raise KeyError(key) from err KeyError: 'x'

Question: len

Assertion | Status | Score | Error
--- | --- | --- | ---
assert len(out)==2 and list(out['x'])==[1,2] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

### Zero guy — 0000

File: submissions/student_answer_sheet.ipynb

Score: 0 / 29 (0.0%)

Question: question_one

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_one([1,2,2,3]) == 6 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_one([]) == 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_two

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_two([1,2,3]) == [3,2,1] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_two([]) == [] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_three

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_three([1,2,2,3]) == {1:1,2:2,3:1} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_three([]) == {} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_four

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_four([[1,2],[3,4]]) == [1,2,3,4] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_four([]) == [] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_five

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_five({'a':1,'b':2,'c':1}) == {1:['a','c'],2:['b']} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_six

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_six({'x':1,'y':2},{'y':3,'z':4}) == {'x':1,'y':5,'z':4} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_eight

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_eight("hello world") == ["hello","world"] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_eight("") == [] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_nine

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_nine(["a","b"],"-") == "a-b" | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_nine([]) == | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1 assert question_nine([]) == ^ SyntaxError: invalid syntax

Question: question_ten

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_ten("I love python") == 6 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_ten("") == 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_eleven

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_eleven([1,2,3],[2,3,4]) == {2,3} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_twelve

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_twelve([1,2,2,3,1]) == [1,2,3] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_thirteen

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_thirteen([1,2,3]) == [1,4,9] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: question_fourteen

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_fourteen([1,2,3,4]) == [2,4] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError

Question: isinstance

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(s, pd.Series) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 's' is not defined

Question: s.loc['a'] == 2 and s.loc['b'] == 1

Assertion | Status | Score | Error
--- | --- | --- | ---
assert s.loc['a'] == 2 and s.loc['b'] == 1 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 's' is not defined

Question: list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert list(out['first']) == ['John','Alice'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['last']) == ['Doe','Smith'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['id']) == [2] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['val'])==[4,2] and list(out['key'])==['a','b'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['num'])==[1,9,3] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?

Question: out.iloc[0]['x'] == 20 and out.iloc[0]['y'] == 200

Assertion | Status | Score | Error
--- | --- | --- | ---
assert out.iloc[0]['x'] == 20 and out.iloc[0]['y'] == 200 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?

Question: len

Assertion | Status | Score | Error
--- | --- | --- | ---
assert len(out)==2 and list(out['x'])==[1,2] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?

### perfect but zero — 000 7 0000

File: submissions/student_assignment_partial_incorrect.ipynb

Score: 5 / 29 (17.24%)

Question: question_one

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_one([1,2,2,3]) == 6 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_one([]) == 0 | passed | 1 |

Question: question_two

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_two([1,2,3]) == [3,2,1] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_two([]) == [] | passed | 1 |

Question: question_three

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_three([1,2,2,3]) == {1:1,2:2,3:1} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_three([]) == {} | passed | 1 |

Question: question_four

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_four([[1,2],[3,4]]) == [1,2,3,4] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> AssertionError
assert question_four([]) == [] | passed | 1 |

Question: question_five

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_five({'a':1,'b':2,'c':1}) == {1:['a','c'],2:['b']} | passed | 1 |

Question: question_six

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_six({'x':1,'y':2},{'y':3,'z':4}) == {'x':1,'y':5,'z':4} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_six' is not defined. Did you mean: 'question_one'?

Question: question_eight

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_eight("hello world") == ["hello","world"] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_eight' is not defined. Did you mean: 'question_five'?
assert question_eight("") == [] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_eight' is not defined. Did you mean: 'question_five'?

Question: question_nine

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_nine(["a","b"],"-") == "a-b" | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_nine' is not defined. Did you mean: 'question_one'?
assert question_nine([]) == | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1 assert question_nine([]) == ^ SyntaxError: invalid syntax

Question: question_ten

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_ten("I love python") == 6 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_ten' is not defined. Did you mean: 'question_two'?
assert question_ten("") == 0 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_ten' is not defined. Did you mean: 'question_two'?

Question: question_eleven

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_eleven([1,2,3],[2,3,4]) == {2,3} | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_eleven' is not defined. Did you mean: 'question_five'?

Question: question_twelve

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_twelve([1,2,2,3,1]) == [1,2,3] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_twelve' is not defined. Did you mean: 'question_two'?

Question: question_thirteen

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_thirteen([1,2,3]) == [1,4,9] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_thirteen' is not defined. Did you mean: 'question_three'?

Question: question_fourteen

Assertion | Status | Score | Error
--- | --- | --- | ---
assert question_fourteen([1,2,3,4]) == [2,4] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'question_fourteen' is not defined. Did you mean: 'question_four'?

Question: isinstance

Assertion | Status | Score | Error
--- | --- | --- | ---
assert isinstance(s, pd.Series) | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 's' is not defined

Question: s.loc['a'] == 2 and s.loc['b'] == 1

Assertion | Status | Score | Error
--- | --- | --- | ---
assert s.loc['a'] == 2 and s.loc['b'] == 1 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 's' is not defined

Question: list

Assertion | Status | Score | Error
--- | --- | --- | ---
assert list(out['first']) == ['John','Alice'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['last']) == ['Doe','Smith'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['id']) == [2] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['val'])==[4,2] and list(out['key'])==['a','b'] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?
assert list(out['num'])==[1,9,3] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?

Question: out.iloc[0]['x'] == 20 and out.iloc[0]['y'] == 200

Assertion | Status | Score | Error
--- | --- | --- | ---
assert out.iloc[0]['x'] == 20 and out.iloc[0]['y'] == 200 | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?

Question: len

Assertion | Status | Score | Error
--- | --- | --- | ---
assert len(out)==2 and list(out['x'])==[1,2] | failed | 0 | Traceback (most recent call last): File "/Volumes/MacSSD/Areas/Github_Repositories/evaluator/src/evaluator/comparison/comparison_service.py", line 20, in run_assertions exec(code, student_namespace) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 1, in <module> NameError: name 'out' is not defined. Did you mean: 'oct'?