Your debut and fin values are floating point values, not integers, because taille is a float.
Make those values integers instead:
item = plateau[int(debut):int(fin)]
Alternatively, make taille an integer:
taille = int(sqrt(len(plateau)))
Your debut and fin values are floating point values, not integers, because taille is a float.
Make those values integers instead:
item = plateau[int(debut):int(fin)]
Alternatively, make taille an integer:
taille = int(sqrt(len(plateau)))