import lib EXAMPLE = """ """ def solve(lines: list[str]): res = 0 for (i, line) in enumerate(lines): print(i, line) # digits = lib.str_to_int_list(line) # digit = lib.str_to_single_int(line) return res def solve2(lines: list[str]): res = 0 for (i, line) in enumerate(lines): print(i, line) return res def main(): lines = lib.str_to_lines_no_empty(EXAMPLE) print("Example 1:", solve(lines)) return lines = lib.str_to_lines_no_empty(open("ix.txt").read()) print("Solution 1:", solve(lines)) return lines = lib.str_to_lines_no_empty(EXAMPLE) print("Example 2:", solve2(lines)) return lines = lib.str_to_lines_no_empty(open("ix.txt").read()) print("Solution 2:", solve2(lines)) if __name__ == "__main__": main()