summaryrefslogtreecommitdiffstats
path: root/solutions/py/d04.py
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/py/d04.py')
-rw-r--r--solutions/py/d04.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/solutions/py/d04.py b/solutions/py/d04.py
index 778b05e..c9bcbf3 100644
--- a/solutions/py/d04.py
+++ b/solutions/py/d04.py
@@ -25,7 +25,8 @@ def pt1(input):
amount = 0
n = 357253
while n < 892942 + 1:
- if (inc := isIncreasing(n))[0] == True:
+ inc = isIncreasing(n)
+ if inc[0] == True:
if containsDouble(n):
amount += 1
n += 1
@@ -46,7 +47,8 @@ def pt2(input):
amount = 0
n = 357253
while n < 892942 + 1:
- if (inc := isIncreasing(n))[0] == True:
+ inc = isIncreasing(n)
+ if inc[0] == True:
if containsDouble(n):
amount += 1
n += 1