py-repo

a python playground
Index Commits Files Refs README
commit e0ab4b82641d5f1b3539b7889fd733c8a336a051
parent f25588a5b0e55fe5149c688e3afa7c0ef22f9196
Author: Martin J. Klöckner <martin.cachari@gmail.com>
Date:   Fri, 20 Nov 2020 00:59:16 -0300

Added ex43.py a matrix initialization exercise.

Diffstat:
Aguia03/ex43.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/guia03/ex43.py b/guia03/ex43.py
@@ -0,0 +1,7 @@
+import random
+
+M = 4
+
+matrix = [ [ random.randint(0, 9) for x in range(M) ] for y in range(M) ]
+
+print(matrix)