# Can't find any test cases for which my code for sudoku is marked incorrect

 0 def check_sudoku(list): n = len(list) test = [] i = 1 valid = 1 while i <=n : test.append(i) i = i+1 for e in list: j = 0 while j < n: if test[j] not in e: valid = 0 break j = j+1 if valid == 0: return False k = 0 while k < n: column = [] c = 0 while c

 1 Did you try all of these tests? (I assume you did since you searched the forum before posting your question!) If yes and they're all ok it's probably a problem with formatting of your code. Then read this and resubmit. If you get a correct then, close or delete this thread and be happy ;-) If one of the tests is not ok: et voila, you found a test case for which your procedure fails. answered 14 Mar '12, 10:29 Sebastian We... 1.6k●3●16●34
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×15,262
×118