Python code:
Task 4
You must write a function printListInTableFormat thattakes as input a list representing a candidate solution for theN-Queens problem and prints the solution in a matrixformat.
For example: your program could do the following: Enter N: 4 Enter position of Queen: 10 Enter position of Queen:
OR
OR