<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def key_assoc_val(d, func, exclude=None):
 """return the key associated with the value returned by func """

    vs = list(d.values())
    ks = list(d.keys())
    key = ks[vs.index(func(vs))]
    return key