結果 : how to code matrices in python