Last active
August 29, 2015 14:24
-
-
Save letroot/7396c811be48721a7402 to your computer and use it in GitHub Desktop.
author:daniel_adeyemo #lpmc
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
# 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