Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Character Picture Grid
- 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', '.', '.', '.'],
- ['.', '.', '.', '.', '.', '.']]
- #loop inside a loop that
- for column in range(0,6):
- for row in range(0,9):
- if row == 8:
- print(grid[row][column])
- break
- #Newline does not print automatically
- print(grid[row][column], end='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement