# main part
userInput = input("Enter the matrix you would like to check (Sudoku): ").strip()
userInputList = userInput.split(' ')
testList = inputToMatrix(userInputList)
answer1 = checkRowAndColumnSum(testList)
slicedMatrix = tosliceMatrix(testList)
anwser2 = checkSubMatrixSum(slicedMatrix)
if answer1 and anwser2:
print("Yes")
else:
print("No")
Created
November 28, 2020 05:09
-
-
Save akirap3/54c90109c5434f993868f66c0761f2b2 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment