Ten small Python tasks, each failing on the fixture and passing with a reference solution, including workflow expectations for a small change, a bugfix, and a delegable change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
220 B
Python
8 lines
220 B
Python
def dedupe(items):
|
|
"""Return items without duplicates, keeping the first occurrence of each."""
|
|
result = []
|
|
for item in items:
|
|
if item not in result:
|
|
result.append(item)
|
|
return result
|