tuples as records

tuples can be used as simple records.

In [1]:
volunteers = [('Bob', 36, 'M'), 
              ('Alice', 27, 'F'), 
              ('Eve', 41, 'F')]
In [2]:
for hero in sorted(volunteers):
    print('%s/%d/%s' % hero)
Alice/27/F
Bob/36/M
Eve/41/F