Practice ยท 3 of 3
Task Records
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.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Dataclass Drills