Advertisement
Guest User

smauwi jauwi

a guest
Mar 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. sudokufield = [
  2. [5,3,0,0,7,0,0,0,0],
  3. [6,0,0,1,9,5,0,0,0],
  4. [0,0,0,0,0,0,0,0,0],
  5. [0,0,0,0,0,0,0,0,0],
  6. [0,0,0,0,0,0,0,0,0],
  7. [0,0,0,0,0,0,0,0,0],
  8. [0,0,0,0,0,0,0,0,0],
  9. [0,0,0,0,0,0,0,0,0],
  10. [0,0,0,0,0,0,0,0,0],
  11. ]
  12. count = 0
  13. printstring = ""
  14.  
  15. def printgrid():
  16. global sudokufield
  17. for y in range(9):
  18. for x in range(9):
  19. global count
  20. global printstring
  21. count += 1
  22. printstring = printstring + (" " + str(sudokufield[y][x] +" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement