Advertisement
George_Ivanov05

matrix

Sep 24th, 2022
922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. a = [
  2.     [1, 2, 3, 4],
  3.     [5, 6, 7, 8],
  4.     [9, 10, 11, 12],
  5.     [13, 14, 15, 16],
  6. ]
  7.  
  8. for r in range(len(a)): # 0
  9.     for c in range(len(a)): # 0 1 2 3
  10.         print(a[r][c])
  11.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement