Home>

I want to find the sum of all 1000 arrays without breaking the shape of the numpy array, but I don't know how.

Data image
a1 = np.random.randn (7,7)
a2 = np.random.randn (7,7)
a3 = np.random.randn (7,7)
・ ・ ・
a1000 = np.random.randn (7,7)
Thing I want to do
a_sum = a1 + a2 + a3 ・ ・ ・ ・ a1000
a_sum.shape # (7,7)

I searched a lot, but couldn't find a suitable method.
I am very sorry for the basic question, but I would appreciate it if you could teach me.