Skip to content

Instantly share code, notes, and snippets.

@letroot
Last active August 29, 2015 14:24
Show Gist options
  • Save letroot/7396c811be48721a7402 to your computer and use it in GitHub Desktop.
Save letroot/7396c811be48721a7402 to your computer and use it in GitHub Desktop.
author:daniel_adeyemo #lpmc
# this is learntris.py
import sys
def print_row():
row = '. ' * 10
return row.strip() + '\n'
def print_grid():
row_list = []
for i in range(22):
row_list.append(print_row())
grid = ''.join(row_list)
return grid.strip()
def main():
while raw_input() != 'q':
print print_grid()
else:
exit()
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment