Python Create an array of vectors Basic question but I'm new to Python and I'd like to create an array of vectors. Unfortunately arr.append() isn't working...

Here's what I have:

for i, p in enumerate( someArr ):
    if x &lt; y:
        locationArr = []
        location = obj.particle_systems[0].particles[i].location
        locationArr.append(location)
    return locationArr


Not sure what the location vector at obj.particle_systems[0].particles[i].location is ... object? Array? Output for an example is:
Vector((1.0000001192092896, 0.9654528498649597, -0.4224875271320343))

Thanks.
Duh, was defining the array in the for-loop