Advanced Python

Sort with a lambda

① Learn

A lambda creates a tiny function inline. It is often used as a key= function when sorting.

② Implement — write it, run it, submit
Goal

Make `ordered` equal `[('Rush', 140), ('Glow', 180), ('Drift', 200)]`.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators