def dictget(d, *k):
    """Get the values corresponding to the given keys in the provided dict."""
return [d[i] for i in k]
return (d[i] for i in k)
for i in k:
    yield d[i]
Divide a dictionary into variables