Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- def on_bingo_tabel(tabel):
- numpy_array = np.array(tabel)
- numpy_array = np.rot90(numpy_array)
- numpy_array = np.flip(numpy_array, 0)
- i = 0
- for el in numpy_array:
- print((15*i+1, 15*i+16))
- for x in el:
- if x not in range(15*i, 15*i+16):
- return False
- i+=1
- return True
- tabel = [[12, 17, 34, 48, 70],
- [14, 25, 40, 56, 61],
- [6, 29, 43, 46, 72],
- [13, 16, 44, 59, 65],
- [4, 29, 34, 49, 67]]
- print(on_bingo_tabel(tabel))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement