DavidLeoni / softpython-en

Introductive book to coding and data analysis in Python 3

Home Page:https://en.softpython.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

matrices-lists1: add simple traversal

DavidLeoni opened this issue · comments

https://en.softpython.org/matrices-lists/matrices-lists1-sol.html

Surprisingly, a simple iteration that prints the cells is missing, maybe because something similar is already in for7-nested (see also #58 ) but a reminder is not a bad idea.

Question: in the iteration should we print in the same order as we see with print(mat[i][j], end=' ') (but the end= might be slighlty confusing) or in vertical (which on the other hand might suggest some sort of column traversing)?