Back to Freecodecamp

Step 13

curriculum/challenges/english/blocks/learn-classes-and-objects-by-building-a-sudoku-solver/6606a2f8a6a36f39518e0439.md

latest786 B
Original Source

--description--

As you can see, the board is printed on the screen. Now, delete your print call.

--hints--

You should not have print(gameboard.board) in your code.

js
({ test: () => assert.isFalse(runPython(`_Node(_code).has_call("print(gameboard.board)")`)) })

--seed--

--seed-contents--

py
--fcc-editable-region--
class Board:
    def __init__(self, board):
        self.board = board

puzzle = [
  [0, 0, 2, 0, 0, 8, 0, 0, 0],
  [0, 0, 0, 0, 0, 3, 7, 6, 2],
  [4, 3, 0, 0, 0, 0, 8, 0, 0],
  [0, 5, 0, 0, 3, 0, 0, 9, 0],
  [0, 4, 0, 0, 0, 0, 0, 2, 6],
  [0, 0, 0, 4, 6, 7, 0, 0, 0],
  [0, 8, 6, 7, 0, 4, 0, 0, 0],
  [0, 0, 0, 5, 1, 9, 0, 0, 8],
  [1, 7, 0, 0, 0, 6, 0, 0, 5]
]

gameboard = Board(puzzle)
print(gameboard.board)
--fcc-editable-region--