Skip to main content

Course

Python

PythonPart 6 of 7 · Chapter 1 of 7

Sorting, Slicing, and the Methods That Return Nothing

Sorting a list of names is one function call, right up until the names have capital letters in them and the answer is quietly wrong. Sort the same list four ways, changing only the key, and watch the order rearrange itself under each rule.

Read first: Ordered Collections, Two Ways


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.