Advertisement
T-D-K

Untitled

Jun 29th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. a = [
  2.     [1, 2, 0, 4],
  3.     [18, 2, 13, 2],
  4.     [10, 3, 11, 3],
  5.     [3, 7, 4, 100],
  6.     [0, 1, 9, 2],
  7.     [8, 1, 2, 0]
  8. ]
  9.  
  10. r = 0
  11. for j in range(len(a[0])):
  12.     for i in range(len(a)):
  13.         if a[i][j] == 0:
  14.             break
  15.     else:
  16.         r = r + 1
  17. print(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement