Created
September 9, 2013 17:31
-
-
Save benhosmer/6498864 to your computer and use it in GitHub Desktop.
Create a simple grid and print it properly in python.
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
#!/usr/bin/env python | |
board = [ ['-'] *3 for i in range(3) ] | |
for i, line in enumerate(board): | |
for char in line: | |
print char, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pretty Nice : )