Sorting is a practical technique for organizing Python data structures. The built-in sorted function handles basic cases, while the key parameter lets you define the value used for ordering. section 3.15
Practice sorting by derived properties:
- Order positive and negative numbers by absolute value. section 3.15
- Order strings by their number of vowels. section 3.15
- Order lists by the sum of their numbers. section 3.15
- Display Unix shells by decreasing popularity, then sort each shell’s usernames alphabetically. section 3.20

















