def all_in_dict(nameL, D):
    """If all members of nameL are keys in D, then return True, otherwise False."""
    for name in nameL:
        if name not in D:
            return False
    return True
