Advertisement
teslariu

matriz

Apr 13th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. def imprimir_matriz(m):
  5.     for fila in m:
  6.        # print()
  7.         for elemento in fila:
  8.             print(str(elemento).center(5),end=" ")
  9.         print()
  10.  
  11.  
  12.  
  13. matriz = [[1, 3, 6], [-5, 55, 11], [0, 0, 1], [2, -5, 6], [47, 2, 100]]
  14. imprimir_matriz(matriz)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement