Since the logic behind verifying a Latin square/magic square/Sudoku is independent of languages, I shall move you to a different forum.
Please start by writing down the rules for your square.
A N N Latin square is formally de ned by the following criteria:
Every row contains the numbers 1 through N exactly once, in any order.
Every column contains the numbers 1 through N exactly once, in any order
A N N Latin square is formally de ned by the following criteria:
Every row contains the numbers 1 through N exactly once, in any order.
Every column contains the numbers 1 through N exactly once, in any order
Im trying to create a program that take user input and verify if latin square or not. Latin square requirments: Every row contains the numbers 1 through N exactly once, in any order.
Every column contains the numbers 1 through N exactly once, in any order.
I have just the code to ask user for numbers but not too sure how to start off verifying .. (Python).. Any help would be appreciated.. thanks