Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chess = []
- row = 9
- col = 9
- for i in range(row):
- for j in range (col):
- if (i+j)%2 == 0:
- chess.append(0)
- else:
- chess.append(1)
- #for i in range(col):
- #for j in range (row):
- print ("%8d",chess,end="")
- print ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement