dictget = lambda d, *k: [d[i] for i in k] ''' usage: v1, v2, vN = dictget(<dict>, 'key1', 'key2', 'keyN') '''