print matrix eleme

Solutions on MaxInterview for print matrix eleme by the best coders in the world

showing results for - "print matrix eleme"
Eleonora
06 Jan 2017
1#Exemple:
2M=[[1,2,3],[4,5,6],[7,8,9]]
3#Converting Matrix elements to string (join() only work with str Matrix)
4M=list(map(lambda i:[str(_) for _ in i],M))
5[print(' '.join(i)) for i in M]
6