def copy_dict(d, *keys):
    """Make a copy of only the `keys` from dictionary `d`."""
return {key: d[key] for key in keys}
Create a Python dictionary containing specific key–value pairs from another dictionary