Skip to content

Instantly share code, notes, and snippets.

@kurzweil777
Last active June 14, 2020 08:53
Show Gist options
  • Save kurzweil777/82522e70d99bab1b63e08539e6acd954 to your computer and use it in GitHub Desktop.
Save kurzweil777/82522e70d99bab1b63e08539e6acd954 to your computer and use it in GitHub Desktop.
Drawing with symbols
"""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