import re with open('03-input') as f: landscape = [row.strip() for row in f] count = 0 i, j = 0, 0 l = len(landscape[0]) while i