Sudoku Validator

Hi guys! I was trying to find someone who has more experience than me on this platform because I’m stuck with a python game (Sudoku Validator). To me it seems like I did nothing wrong, so if anyone can give me a tip, I would be glad to receive it.

i = 0
while i  <  len(myList)  - 1:  # for example: myList = [1, 2, 3, 4, 5, 6, 7, 8, 9]
     if myList[ i ] == myList[ i + 1]:
            print("false")  # to validate, either "false" or "true"
            quit()
     else:
            i += 1

print("true")

This returns incorrect on “column error”, “subgrid error” and “rubbish error”, the others test cases are correct.
I solved it, this wasn’t the wrong part of my code.

3 posts were merged into an existing topic: [Community Puzzle] Sudoku Validator