Home > database >  Python, can't assign new string to matrix cell
Python, can't assign new string to matrix cell

Time:10-10

Trying to solve one task on pic of code and debug

CodePudding user response:

The error is in is_word(board.copy()[i], word[1:], i, j 1): you pass a list of strings board.copy()[i] as the first parameter instead of a list of lists of strings. Remove the [i].

  • Related