Advent of Code 2023 Day 01 Part 1 1 2 3 4 5with open("day01_input.txt", "r") as f: data = ["".join(c for c in row if c.isdigit()) for row in f.read().splitlines()] values = [int(d[0] + d[-1]) for d in data] print(sum(values))