[Solved] What is the best way to print this matrix without a for loop [closed]


A minimalist approach:

In [1]: l=[['a1','a2','a3'],['a4','a5','a6'],['a7','a8','a9']]

In [2]: from __future__ import print_function

In [3]: print(*l,sep='\n')
['a1', 'a2', 'a3']
['a4', 'a5', 'a6']
['a7', 'a8', 'a9']

solved What is the best way to print this matrix without a for loop [closed]