You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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._firstwhilecurrentisnotNone:
ifcurrent.item==item:
returnTruecurrent=current.nextreturnFalse
The 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.
The text was updated successfully, but these errors were encountered:
Markus setup:
Example code:
The above code has a syntax error (see indentation of the
current = self._first
line). When running the code, python returns this error:However, PyTA returns full marks for this file as seen below:
After speaking with @david-yz-liu, I believe this is not intended behavior.
The text was updated successfully, but these errors were encountered: