advent-of-code/2015/day07.py

21 lines
355 B
Python
Raw Normal View History

2022-12-09 21:41:14 +00:00
import shared
import matrix
2022-12-19 04:55:45 +00:00
def part1(inp):
print(x)
for i in inp:
instruction, destination = i.split(" -> ")
print(instruction, destination)
2022-12-09 21:41:14 +00:00
def main():
with open(shared.get_fname(7), "r") as f:
inp = [x.rstrip() for x in f.readlines()]
2022-12-19 04:55:45 +00:00
part1(inp)
2022-12-09 21:41:14 +00:00
#pt2(inp)
if __name__ == "__main__":
main()