May-08-2018, 08:13 AM
I must add a very important thing. When you see on the prompt command " Hit ENTER to continue": remove tkinter figure clicking on its cross(corner up and right). So, I will rather modify "Hit ENTER to continue" to "Remove first tkinter figure and then click ENTER to continue(on the Command Prompt)"
def printSUDOKU(self, matrix): pprint(matrix) for i in range(9): for j in range(9): if matrix[i][j]==' ': matrix[i][j]=0 else: matrix[i][j]=int(matrix[i][j]) puzzle=matrix print("puzzle") pprint(puzzle) with open('numbers.csv', 'w', newline='') as csvfile: numwriter=csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL) numwriter.writerow(puzzle) input("Hit ENTER to continue") def printALL(self): print('Sudoku:')I think this project can be improved, because there are people much stronger than me on python language.