Advertisement
Filosss

Untitled

Nov 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def problema7(matrix):
  2.     a = []
  3.     for i in range(len(matrix[0])):
  4.         temp = []
  5.         for j in range(len(matrix)):
  6.             temp.append(matrix[j][i])
  7.         if(len(set(temp)) == len(temp)):
  8.             a.append(1)
  9.         else:
  10.             a.append(0)
  11.     return a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement