Question: how do I fix the syntax error on line 202 196 while check_valid(puzzle, get_cages( ) ) == False: 197 current_cell = puzzle[row_idx] [col_idx] 198 199

how do I fix the syntax error on line 202

how do I fix the syntax error on line 202 196 while

196 while check_valid(puzzle, get_cages( ) ) == False: 197 current_cell = puzzle[row_idx] [col_idx] 198 199 if current_cell = = 0: 200 puzzle[row_idx] [col_idx] =+ 1 201 202 if (len(find_duplicates_unsolved(puzzle[row_idx]) ) ) 4: 204 col_idx += 1 205 else : 206 row_idx += 1 207 col_idx = 0 208 else : 209 puzzle [row_idx] [col_idx] =+ 1 210 211 # if puzzle [row_idx] [col_idx] == 5: 212 # puzzle [row_idx] [col_idx] = 0 213 # if col idx == 4: 214 # row_idx += 1 215 # col idx = 0 216 # else: 217 # col_idx += 1 218 219 # if check_valid (puzzle, get_cages() ) == False: 220 # puzzle[row_idx] [col_idx] += 1 221 222 # if (check_list (puzzle[row_idx]) ) == True: 223 # row_idx += 1 224 225 print (puzzle) 226 227 if check_valid(puzzle, get_cages( ) ) == True: 228 print (puzzle) 229

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!