Baoshan Gu
1 min readJun 28, 2020

--

For point 1, you can do:

people.sort(key=operator.itemgetter(‘name’, ‘age’))

--

--

Baoshan Gu
Baoshan Gu

Responses (1)