Skip to content

Instantly share code, notes, and snippets.

@benhosmer
Created September 9, 2013 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhosmer/6498864 to your computer and use it in GitHub Desktop.
Save benhosmer/6498864 to your computer and use it in GitHub Desktop.
Create a simple grid and print it properly in python.
#!/usr/bin/env python
board = [ ['-'] *3 for i in range(3) ]
for i, line in enumerate(board):
for char in line:
print char,
print
@rookieljw
Copy link

Pretty Nice : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment