Using python 3.6
Say I had this dictionary and list structure of keys:
dictionary = {'a':1, 'b':2, 'c':3, 'd':4, 'e':5}
keys = [['a','b'], ['c','d','e']]
Whats the best way to get this?
values = [[1, 2], [3, 4, 5]]
Thanks!
Using python 3.6
Say I had this dictionary and list structure of keys:
dictionary = {'a':1, 'b':2, 'c':3, 'd':4, 'e':5}
keys = [['a','b'], ['c','d','e']]
Whats the best way to get this?
values = [[1, 2], [3, 4, 5]]
Thanks!