concept sorted in category python
appears as: sorted

This is an excerpt from Manning's book Python Workout: 50 ten-minute exercises.
Table 2.1 What you need to know (view table figure)
You can solve this exercise several ways, but all will require using the
sorted
method that you saw in the last chapter, along with a function passed as an argument to itskey
parameter. You can read more aboutsorted
and how to use it, including custom sorts withkey
, at http://mng.bz/D28E. One of the options for solving this exercise involvesoperator.itemgetter
, about which you can read here: http://mng.bz/dyPQ.