So I had a coffee and found the a solution. This will create the array of values dependant on x and y.
import numpy as np
x = 5
y = 100
inputArray = np.zeros(x)
squares = [list(inputArray+i) for i in range(y)]
values = ','.join([f"{j}" for j in squares]) ```