Home > database >  Why am i getting the error of "List Index out of range"
Why am i getting the error of "List Index out of range"

Time:04-05

Im trying to make a connect four game. My 2d list prints only one 0. I've looked through many sourcesenter image description here

Im attempting to print my 2d list "Board"

CodePudding user response:

line 16:

print([rows][cols], end=' ')

should be

print(board[rows][cols], end=' ')
  • Related