Practice · 3 of 4
delete_task
CHALLENGE
Difficulty: beginner+25 XP
Write delete_task(tasks, index) returning (new_list, deleted_task). Out-of-range: ([], None) when tasks is empty, otherwise (copy unchanged, None).
Press Submit to check your solution.
Back to lesson: Practice: Task-Function Drills