I would like to do something like this
def f(): return { \'a\' : 1, \'b\' : 2, \'c\' : 3 } { a, b } = f() # or { \'a\', \'b\' } = f() ?
mydict = {'aa':2, 'bb':'john', 'cc':34, 'dd':'bye'} a, b, c, d = [mydict[k] for k in ['aa', 'bb', 'cc', 'dd']]