Advertisement
Josif_tepe

Untitled

Oct 14th, 2024
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. def main():
  2.     n = int(input())
  3.     m = int(input())
  4.  
  5.     mat = []
  6.  
  7.     for i in range(0, n):
  8.         row = []
  9.         for j in range(0, m):
  10.             x = int(input())
  11.             row.append(x)
  12.  
  13.         mat.append(row)
  14.  
  15.     for i in range(0, n):
  16.         for j in range(0, m):
  17.             print(mat[i][j], end=" ")
  18.         print()
  19.  
  20. if __name__ == "__main__":
  21.     main()
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement