RosettaCodeData/Task/Sort-an-array-of-composite-structures/Python/sort-an-array-of-composite-structures-1.py
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

2 lines
65 B
Python

people = [('joe', 120), ('foo', 31), ('bar', 51)]
sorted(people)