Hello,
I am trying to generate an array out of the results of this iteration.
import numpy as np
num=3
for x in range(num+1):
a=np.array([2,x])
print(a)
Result:
[2 0]
[2 1]
[2 2]
[2 3]
So, I would like to have an array
a = [2 0 2 1 2 2 2 3]
I have not figured out how to apply a np.concatenate as it does not allow me to assign a variable to each result.
Any ideas?
Thank you!