I need to create a vector composed of numbers from 1 to 100 and each number is repeated 100 times. I was able to come up with this solution, but I need to avoid using i,i,i,i,i,i....,i,i,i
a = np.zeros(0)
for i in range(1,100):
a = np.r_[a,[i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i]]
print(a)
*Here is the output : [ 1. 1. 1. ... 99. 99. 99.]