import numpy as np a = np.array([400., 403., 406.]); b = np.array([0.2,0.55,0.6]); dict = {} for A, B in zip(a, b): dict[A] = B print(dict) # {400.0: 0.2, 403.0: 0.55, 406.0: 0.6}