Skip to content

Commit 0439ffe

Browse files
JamesJames
authored andcommitted
clean up print statements
1 parent b596c5f commit 0439ffe

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/aoc_2023/days/3.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
def main():
88
args = parse_args()
99
input = read_input(args.input_file)
10-
result = solve_day_3(input)
11-
print(f"Day 3: The sum of part numbers is {result}")
10+
result_part_1, result_part_2 = solve_day_3(input)
11+
print(
12+
f"Day 3: The sum of part numbers is {result_part_1}. "
13+
f"The sum of gear ratios is {result_part_2}"
14+
)
1215

1316

1417
if __name__ == "__main__":

src/aoc_2023/solvers/day_3_solvers.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ def identify_part_numbers(input, symbols_collection) -> list:
157157
if part.check_window_for_symbol(symbol_positions):
158158
parts_list.append(part)
159159

160-
for p in parts_list:
161-
print(p)
162160
return parts_list
163161

164162

@@ -173,9 +171,6 @@ def identify_gears(parts_collection, symbol_collection):
173171

174172
gear_collection = [sym for sym in symbol_collection if sym.is_gear]
175173

176-
for sym in [sym for sym in symbol_collection if sym.is_potential_gear]:
177-
print(sym)
178-
179174
return gear_collection
180175

181176

0 commit comments

Comments
 (0)