RosettaCodeData/Task/Sort-an-array-of-composite-structures/Python/sort-an-array-of-composite-structures-1.py

3 lines
65 B
Python
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
people = [('joe', 120), ('foo', 31), ('bar', 51)]
sorted(people)