python - name of np array variable as string
<p>I have this code:</p>

<p><strong>I restated the problem formulation somewhat. Not sure if etiquette is to post a new question. If so, my bad</strong></p>

<pre><code>import numpy as np
a = np.array([0,0])
b = np.array([1,0])
c = np.array([2,0])

my_array_list = [a,b,c]
for my_array in my_array_list:
    np.save('string_that is representative of my_array',my_array)
</code></pre>

<p>where 'string that is representative of my array' equals to 'a', 'b', 'c' or similar.</p>

<p>There is likely a better way to solve this, I can just not come up with one right now.</p>

<p>What is the best way to do this, fast and efficiently?</p>