Guest User

Untitled

a guest
Jul 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. groups = {'group a': [('John', 30)], 'group b': [('Jill', 25), ('Joe', 35)]}
  2. list([[age for (name, age) in persons] for persons in groups.values()])
  3. # => [[25, 35], [30]]
Add Comment
Please, Sign In to add comment