Guest User

Untitled

a guest
Nov 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from numpy import *
  2. matriz=array([[3, 1, 5],[4, 7, 2],[9, 8, 6]])
  3. def consecutivos(matriz):
  4. con=set()
  5. for i in matriz:
  6. for k in i:
  7. con.add(k)
  8. if len(con)==(len(matriz))**2:
  9. return True
  10. return False
Add Comment
Please, Sign In to add comment