import numpy as np arr100 = np.zeros(100) for i in range(100): arr100[i] = 1/(i+1)