Sudoku generator and solver in python

I am making a sudoku generator and solver project in Python for a school project and I ran into a couple of errors. The code itself does not have any mistakes, but the implementation is incorrect, so I’m stuck. Here is the code: from tkinter import * import random class SudokuBoard: def __init__(self, master): self.master… Read More Sudoku generator and solver in python

Why does this code not read the sudoku numbers from csv file and reconstruct it?

This print_board is the code to reconstruct the the sudoku. it works perfectly fine when I use the sudoku numbers from the board, but it doesn’t work from the sudoku.csv file. What have I done wrong? """ Sudoku.csv = 7;8;0;4;0;0;1;2;0 6;0;0;0;7;5;0;0;9 0;0;0;6;0;1;0;7;8 0;0;7;0;4;0;2;6;0 0;0;1;0;5;0;9;3;0 9;0;4;0;6;0;0;0;5 0;7;0;3;0;0;0;1;2 1;2;0;0;0;7;4;0;0 0;4;9;2;0;6;0;0;7 """ #these are the sudoku numbers on… Read More Why does this code not read the sudoku numbers from csv file and reconstruct it?