Skip to content

Commit

Permalink
Update Files
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismudith committed Jul 13, 2022
1 parent fb3e125 commit 0ddb276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 2020/1.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def day1(part=1):
if done:
break
print('Part 1: '+day1(part=1))
print('Part 2: '+day1(part=2))
print('Part 2: '+day1(part=2))
5 changes: 2 additions & 3 deletions 2020/3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# If you already have the data as an input use:
data = [] # Your Advent Input
# However, it is highly recommended to run this:
location = "C:\\Users\\dagam\\Downloads\\temp-files\\input.txt" # Path of the input.txt provided from Advent Calendar
location = "" # Path of the input.txt provided from Advent Calendar
try:
with open(location,'r') as f:
data = f.readlines()
Expand Down Expand Up @@ -31,5 +31,4 @@ def day3(part=1):
else:
return increment(1,1)*increment(3,1)*increment(5,1)*increment(7,1)*increment(1,2)
print('Part 1: '+str(day3(part=1)))
print('Part 2: '+str(day3(part=2)))

print('Part 2: '+str(day3(part=2)))

0 comments on commit 0ddb276

Please sign in to comment.