| 1 | initial version |
The following works:
sage: L = [random_matrix(ZZ,5,5) for i in range(1,10)] ; L
sage: sum(L)
or directly without creating a list first:
sage: sum(random_matrix(ZZ,5,5) for i in range(1,10))
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.