def diff_dictionary(d1, d2):
    differentKeyList = []
    keyListD1 = list(d1.keys())
    keyListD2 = list(d2.keys())
    if (len(keyListD1) > len(keyListD2)):
        longerList = keyListD1
        shorterList = keyListD2
    else:
        longerList = keyListD2
        shorterList = keyListD1
    commonList = commonKeys(longerList, shorterList)
    intersectDict = intersect(commonList, d1, d2)
    differentKeyList = differentKeys(longerList, shorterList)
    differenceDict = difference(differentKeyList, d1, d2)
    return (intersectDict, differenceDict)
def diff_dictionary(d1, d2):
    differentKeyList = []
    keyListD1 = list(d1.keys())
    keyListD2 = list(d2.keys())
    if (len(keyListD1) > len(keyListD2)):
        longerList = keyListD1
        shorterList = keyListD2
    else:
        longerList = keyListD2
        shorterList = keyListD1
    commonList = commonKeys(longerList, shorterList)
    intersectDict = intersect(commonList, d1, d2)
    differentKeyList = differentKeys(longerList, shorterList)
    differenceDict = difference(differentKeyList, d1, d2)
    return (intersectDict, differenceDict)