Skip to content

Commit

Permalink
updated to be simpler to modify the days input
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-donco committed Dec 4, 2023
1 parent 8aeb728 commit 53fad1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
if __name__ == '__main__':
today = '04'

input_file = f'problem_inputs/day{today}_input.txt'
# input_file = f'problem_inputs/test_input.txt'

with open(input_file) as day_fp:
day_input = day_fp.readlines()
day_input = [f'{i}'.strip() for i in day_input]
if today == '05':
day05.part01(day_input)
day05.part02(day_input)

if today == '04':
input_file = f'problem_inputs/day{today}_input.txt'
# input_file = f'problem_inputs/test_input.txt'
Expand Down

0 comments on commit 53fad1b

Please sign in to comment.