Created
September 12, 2019 20:24
-
-
Save repen/98f0d376aad0b7fe1ed89a4c843529ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
line = [] | |
desc = [] | |
flag = 1 | |
for r in range(1,9): | |
temp = [] | |
if flag % 2 == 0: | |
for x in range(1,9): | |
if x % 2 == 0: | |
temp.append(chr(9632)) | |
line.append(0) | |
else: | |
temp.append(chr(9633)) | |
line.append(1) | |
else: | |
for x in range(1,9): | |
if x % 2 == 0: | |
temp.append(chr(9633)) | |
line.append(1) | |
else: | |
temp.append(chr(9632)) | |
line.append(0) | |
flag += 1 | |
desc.append(temp) | |
for d in desc: | |
print(" ".join(d)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment