-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Markus setup:
Example code:
def __contains__(self, item: Any) -> bool:
"""Return whether <item> is in this list.
Use == to compare items.
>>> lst = three_items(1, 2, 3)
>>> 2 in lst # Equivalent to lst.__contains__(2)
True
>>> 4 in lst
False
"""
current = self._first
while current is not None:
if current.item == item:
return True
current = current.next
return FalseThe above code has a syntax error (see indentation of thecurrent = self._first line). When running the code, python returns this error:
File "prep5.py", line 100
current = self._first
^
IndentationError: unindent does not match any outer indentation level
However, PyTA returns full marks for this file as seen below:
After speaking with @david-yz-liu, I believe this is not intended behavior.
Metadata
Metadata
Assignees
Labels
No labels