def removekey(d, key):
    """This functions returns a copy of a dictionnary with a removed key
    Parameters: d (dict): dictionnary
                key: the key that must be deleted
    Returns: copy of dictionnary d without the key 
    """
    r = dict(d)
    del r[key]
    return r