Created
August 17, 2017 14:39
-
-
Save vpatov/80386dbe13b4dec318d767153a82ca6b to your computer and use it in GitHub Desktop.
Problem 7
This file contains hidden or 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
grids = [] | |
with open('input_7.txt','r') as f: | |
while(True): | |
grid = [] | |
line = f.readline() | |
if (len(line) < 1): | |
break | |
width,height = (int(i) for i in line.split()) | |
for row in range(height): | |
line = f.readline().strip() | |
grid.append(list(line)) | |
grids.append(grid) | |
print(grids) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment