def difference(differentKeyList, d1, d2):
    differenceDict = {}
    for i in range(len(differentKeyList)):
        currentIndex = differentKeyList[i]
        if (currentIndex in d1):
            differenceDict[currentIndex] = d1[currentIndex]
        if (currentIndex in d2):
            differenceDict[currentIndex] = d2[currentIndex]
    return differenceDict
def difference(differentKeyList, d1, d2):
    differenceDict = {}
    for i in range(len(differentKeyList)):
        currentIndex = differentKeyList[i]
        if (currentIndex in d1):
            differenceDict[currentIndex] = d1[currentIndex]
        if (currentIndex in d2):
            differenceDict[currentIndex] = d2[currentIndex]
    return differenceDict