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

Tell us what’s happening:

I am confused on what the question is asking me to do especially with the character can someone explain to me what it is?

Your code so far

class Board:
    def __init__(self, board):
        self.board = board

    def __str__(self):
        upper_lines = f'\n╔═══{"╤═══"*2}{"╦═══"}{"╤═══"*2}{"╦═══"}{"╤═══"*2}╗\n'
        middle_lines = f'╟───{"┼───"*2}{"╫───"}{"┼───"*2}{"╫───"}{"┼───"*2}╢\n'
        lower_lines = f'╚═══{"╧═══"*2}{"╩═══"}{"╧═══"*2}{"╩═══"}{"╧═══"*2}╝\n'
        board_string = upper_lines
        for index, line in enumerate(self.board):
            row_list = []

            for square_no, part in enumerate([line[:3], line[3:6], line[6:]], start=1):
                row_square = '|'.join(str(item) for item in part)
                row_list.extend(row_square)
            

# User Editable Region

                if square_no != 3:
                    ║.append(row.list║)   

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0

Challenge Information:

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

the symbol needs to be in a string, having quotes first and after, also you need to have row.list first and append something to it, row.list.append()

Oh ok I got it now thanks ilenia for the help

2 Likes