Solution to problem 9 part 1 in Python
This commit is contained in:
1 parent
a55487c839
commit
9a044d1ca7
1 file changed
+2
-1
+2
-1
@@ -65,7 +65,8 @@ def part_1() -> None:
|
||||
if not is_low(*pos, value):
|
||||
continue
|
||||
res += value + 1
|
||||
print(res)
|
||||
|
||||
print(f"The sum of all low points is {res}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user