def copy_dict(d, keys, default=None):
    """Make a copy of only the `keys` from dictionary `d`.
    Use `default` if a key is missing.
    """
Create a Python dictionary containing specific key–value pairs from another dictionary