Recitation 8b (Dec 27, 2011)

Code examples

Example 1: Matrix class


Download (right click -> save link as "matrix.py")

Example 2: output files

stam.txt

hibye

stam2.txt

10 50

matrix.bla

10 10
2 7 7 5 -5 1 5 2 -6 10
-2 10 -8 0 2 -3 10 3 -2 7
-8 -2 -7 5 -9 0 10 1 -4 8
2 0 8 8 6 6 5 -6 2 1
5 -9 5 8 -2 8 -5 4 3 0
-2 1 -1 -1 -6 -3 -7 8 7 4
-3 3 -3 -3 -8 -4 -1 -9 5 3
-8 3 -9 4 2 -4 -3 3 5 4
6 9 -10 0 -4 10 7 4 -5 -1
10 1 3 10 -9 -4 -4 -3 8 -6

Interpreter session log

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License