Let me preface this by saying that I am new to programming.
I would like to create a new array for each iteration, not add elements to the same array.
How can I create a new array?

If I use E=np.array[(...)]

in my loop, I will be rewriting the array every single time.
I want to have a series of arrays saved so that I can Add them to a data frame later and then sort the arrays by the size of the first element.

Here is my code:

```

E=0
n=0
En=np.array(0)
for x in range(1,7):
    for y in range(1,7):
        for z in range(1,7):
            E= x**2+y**2+z**2
            if E<=14:
                n= n+1
                print( "the energy and the nx, ny, nz is", E,x, y, z)
              E=
            if E> 14:
                    break

print(f'there are {n} cobinations')  

```

I don't know. I am new to programming and could not find any answers to "create a new array in the loop", so I did try this:

```
for x in range(1,7):
    for y in range(1,7):
        for z in range(1,7):
            E= x**2+y**2+z**2
            if E<=14:
                n= n+1
                print( "the energy and the nx, ny, nz is", E,x, y, z)
                Exyz=np.array([E,x,y,z])
            if E> 14:

```

This does not allow me to create a new array corresponding to each loop.