Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A python list can handle heterogenous data.

sage: a=[random_matrix(ZZ,3), random_matrix(ZZ,2), 'test string']
sage: a
[
[ -1   0  -1]                        
[  2  -1  -2]  [ 1  2]               
[ -8  -2 -18], [-3  2], 'test string'
]
sage: a[0]
[ -1   0  -1]
[  2  -1  -2]
[ -8  -2 -18]