for key,value in myDict.items(): x=0 currentJ=0 for j in range(key+1,len(myDict)): if j in checked: break x=len(list(set(myDict[i