I'm trying to create sudoku, but I'm getting this error. I think it's because of the range line; maybe I'm doing it wrong, but range(int(numb/numb+3)) doesn't really work either. Thanks for the help.
File "D:\Games\Python\sudokuV2Test2.py", line 83, in estDansSousMatrice
for i in range(bl, bl+3):
TypeError: 'float' object cannot be interpreted as an integer"
This is the code:
def estDansSousMatrice(grille,l,c,v):
bc=(c/3)*3
bl=(l/3)*3
for i in range(bl, bl+3):
for j in range(bc,bc+3):
if grille[i][j]==v:
return True
return False