Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Sudoku Solver in Python - Can someone explain this code ?
Post: RE: Sudoku Solver in Python - Can someone explain ...

The last box to check will be row and column will be both ROW(M-1) &COL(M-1) which will be 8th Row and 8th Column if they start from 0,0 but in the code it is M-1 and M
qwemx General Coding Help 6 2,154 Jun-27-2022, 12:01 AM
    Thread: Sudoku Solver in Python - Can someone explain this code ?
Post: RE: Sudoku Solver in Python - Can someone explain ...

def Suduko(grid, row, col): if (row == M - 1 and col == M): return True if col == M: row += 1 col = 0 if grid[row][col] > 0: return Suduko(grid, row, c...
qwemx General Coding Help 6 2,154 Jun-25-2022, 12:51 PM
    Thread: Sudoku Solver in Python - Can someone explain this code ?
Post: Sudoku Solver in Python - Can someone explain this...

M = 9 def puzzle(a): for i in range(M): for j in range(M): print(a[i][j],end = " ") print() def solve(grid, row, col, num): for x in range(9): if grid[row][...
qwemx General Coding Help 6 2,154 Jun-23-2022, 09:16 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020