Create a program that will detect which two cells have been swapped in a solved Sudoku board.
I will be giving you a file containing a number of solved Sudoku boards.
Within each board, two cells were swapped, making the board inconsistent.
Detect the positions of the two swapped cells, and write those two numbers separated by a comma in a line to the output file, for each board.
So, if your input file consists of the two boards in this file, then your output file should look like the two lines below, because in the first board, in the first row, the second pair of 2 numbers were swapped (positions 2 and 3), and in the second board, the numbers in positions 35 and 44 were swapped. The two numbers should be written in increasing order on each output line.
2,3
35,44
Your program (unswap.py) should run from the command-line and be callable as:
python3 unswap.py input_filename output_filename
You can submit your program to the Program Tester