Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudokufield = [
- [5,3,0,0,7,0,0,0,0],
- [6,0,0,1,9,5,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0],
- ]
- count = 0
- printstring = ""
- def printgrid():
- global sudokufield
- for y in range(9):
- for x in range(9):
- global count
- global printstring
- count += 1
- printstring = printstring + (" " + str(sudokufield[y][x] +" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement