Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from numpy import *
- matriz=array([[3, 1, 5],[4, 7, 2],[9, 8, 6]])
- def consecutivos(matriz):
- con=set()
- for i in matriz:
- for k in i:
- con.add(k)
- if len(con)==(len(matriz))**2:
- return True
- return False
Add Comment
Please, Sign In to add comment