Practice · 2 of 4
Transform: Records to Labels
CHALLENGE
Difficulty: beginner+25 XP
students = [{"name": "Minh", "score": 8}, {"name": "Lan", "score": 5}] (0-10 scale). Write to_labels(students) returning a NEW list of strings "name: pass" when score >= 6 else "name: retake".
Press Submit to check your solution.
Back to lesson: Practice: Transformation & AI Critique