<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iddofobject(data, commdct, key):
 """from commdct, return the idd of the object key"""

    dtls = data.dtls
    i = dtls.index(key)
    return commdct[i]