I have two dictionary with different keys but each key in dictionary is matched like job matches JobType, position matches PositionName, etc and I will like to compare if datadict value equals to exp value. I have following code and result is correct.However, what is the better way for me to do it?res = {}exp = dict(    job=['engineer', 'PM', 'teacher'],    position=['officer', 'CEO', 'CFO'],    name=['bob', ['John', 'amy']])datadict = dict(JobType='teacher', PositionName='CEO', Name='a')datadict2 = dict(JobType='teacher', PositionName='CEO', Name='x')for j, v in zip(['job', 'position', 'name'], ['JobType', 'PositionName', 'Name']):    res[j] = datadict[v]for e, r in zip(sorted(exp), sorted(res)):    if r == 'name':        print(any(res[r] in s for s in exp[e][1]))    else:        print(res[r] in exp[e])# result from datadict: True, True, True# result from datadict2: True, False, True
Check value from two different dictionary with matched key
python;python 3.x