Practice · 3 of 3
Task Records
CHALLENGE
Difficulty: intermediate+25 XP
Define a dataclass Task(title, done=False). Then implement finish(tasks) that returns a NEW list where every task is replaced by a copy with done=True. Use dataclasses.replace.
Press Submit to check your solution.
Back to lesson: Practice: Dataclass Drills