Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import numpy as np
  2.  
  3. def on_bingo_tabel(tabel):
  4. numpy_array = np.array(tabel)
  5. numpy_array = np.rot90(numpy_array)
  6. numpy_array = np.flip(numpy_array, 0)
  7. i = 0
  8. for el in numpy_array:
  9. print((15*i+1, 15*i+16))
  10. for x in el:
  11. if x not in range(15*i, 15*i+16):
  12. return False
  13. i+=1
  14. return True
  15.  
  16.  
  17.  
  18.  
  19. tabel = [[12, 17, 34, 48, 70],
  20. [14, 25, 40, 56, 61],
  21. [6, 29, 43, 46, 72],
  22. [13, 16, 44, 59, 65],
  23. [4, 29, 34, 49, 67]]
  24. print(on_bingo_tabel(tabel))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement