5. Sorting

sorted(), .sort() and .reverse()

sorted(beats) gives back a new list in order; beats.sort() sorts the list itself. Add reverse=True for biggest-first, or use .reverse() to flip any list.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:messy = [7, 3, 5, 1]. Play the crash on the first item of sorted(messy).

Goal
crash
1234