Last active
June 14, 2020 08:53
-
-
Save kurzweil777/82522e70d99bab1b63e08539e6acd954 to your computer and use it in GitHub Desktop.
Drawing with symbols
This file contains 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
"""From grid lists print this: | |
..OO.OO.. | |
.OOOOOOO. | |
.OOOOOOO. | |
..OOOOO.. | |
...OOO... | |
....O....""" | |
grid = [['.', '.', '.', '.', '.', '.'], | |
['.', 'O', 'O', '.', '.', '.'], | |
['O', 'O', 'O', 'O', '.', '.'], | |
['O', 'O', 'O', 'O', 'O', '.'], | |
['.', 'O', 'O', 'O', 'O', 'O'], | |
['O', 'O', 'O', 'O', 'O', '.'], | |
['O', 'O', 'O', 'O', '.', '.'], | |
['.', 'O', 'O', '.', '.', '.'], | |
['.', '.', '.', '.', '.', '.']] | |
for x in range(0, 6): | |
print() | |
for y in range(0, 9): | |
print(grid[y][x], end='') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment