Hide


#1

<Below this line, add a link to the EXACT exercise that you are stuck at.>



I wonder what exactly that (-1) does? randint(0,len(board_in)-1)
Thank you in advance


#2

because list (and strings) are zero-indexed based while len(gth) start counting at 1, so if you do not subtract one, you might get an index error


#3

Oh dear Stetim94 thank youuuuuuu soooooo much. I got it now.:rose::rose:


#4