Learn Classes and Objects by Building a Sudoku Solver - Step 2

Tell us what’s happening:

I cannot assign the variable to an instance. I am not sure if I am missing something.

Your code so far


# User Editable Region

class Board:
    pass
instance = "gameboard"

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Learn Classes and Objects by Building a Sudoku Solver - Step 2

Hi @mjb2024

You should declare a variable gameboard outside the Board class.

Your code is assigning the variable instance to the string gameboard

Read the instructions again, then take a look at the error message as to the variable name, and what is assigned to it.

Happy coding