day 9 done

This commit is contained in:
Jake Pullen
2023-12-09 09:18:11 +00:00
parent 784baab952
commit 3c6bbfffde
5 changed files with 365 additions and 11 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ def save_part_2_puzzle_text(year, day):
existing_puzzle_text = file.read()
# Check if part 2 has already been added
if "part2" in existing_puzzle_text:
print("Part 2 has already been added. Skipping.")
print("There is nothing more to add... Idiot.")
return
puzzle_text = get_puzzle_text(year, day)
puzzle_text = puzzle_text.split('<main>')[1]