Ask Your Question

Revision history [back]

This is one way.

sage: matrix(ZZ, 4, 4, lambda i, j: 10)
[10 10 10 10]
[10 10 10 10]
[10 10 10 10]
[10 10 10 10]