Creating A Dictionary

X and Y are two sequences of equal length. Create a dictionary D such that D[X[i]] = Y[i]