Which fix removes the bug?
def dedupe(items):
seen = []
for x in items:
if x not in seen:
seen.append
return seen
- Change
not intoinin the test - Change
seen.appendtoseen.append(x) - Return
itemsinstead of the seen list - Initialize
seenas a set literal
append is referenced but never called with x.