January
12th,
2017

Multiplying Matrices is a good way to practice what you understand about Python

Formular

Example:

*Approach #1*

§ `zip([iterable, ...])`

^{1} returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables

§ `*`

^{2} is unpack operator, `def test(A, B): print A, B`

, `test(*[[1,2],[3,4]])`

*Approach #2*

§ `enumerate(sequence, start=0)`

^{3} returns an enumerate object

*Approach #3*

§ `[0] * 3`

becomes `[0,0,0]`

**Approach #4: Using Numpy**

Source `here`

**References**