All published worksheets from http://sagenb.org
MS=MatrixSpace(GF(3),4,9)
M=MS([[0,2,1,2,0,2,2,1,1], [1,1,1,1,2,2,2,0,0], [2,2,2,2,1,1,1,0,0], [0,0,0,0,1,1,1,2,2]])
C=LinearCode(M)
C
C.minimum_distance()