1. Mathieu D.
  2. Python 3 Patterns & Idioms

Commits

Mathieu D.  committed 7da65ff

correct error in Comprehensions.rst

  • Participants
  • Parent commits b46ec11
  • Branches default

Comments (0)

Files changed (1)

File docs/Comprehensions.rst

View file
 
 In python we can represent such a matrix by a list of lists, where each sub-list represents a row. A 3 by 3 matrix would be represented by the following list::
 
-    [ [ 1, 0, 1 ],
+    [ [ 1, 0, 0 ],
       [ 0, 1, 0 ],
       [ 0, 0, 1 ] ]