Three Possible Solutions

  • First Solution

    D = dict(map(None, X, Y))
    
  • Second Solution

    D = {}
    for i in range(len(X)):
        D[X[i]] = Y[i]
    
  • Third Solution

    D = dict(zip(X, Y))