Adopted new convention from template

This commit is contained in:
2022-09-22 09:05:37 +02:00
parent 1927e3b009
commit 6941a8cf45

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Created on 07 Jul 2021
@@ -31,9 +31,10 @@ GRID = [
[4, 42, 16, 73, 38, 25, 39, 11, 24, 94, 72, 18, 8, 46, 29, 32, 40, 62, 76, 36],
[20, 69, 36, 41, 72, 30, 23, 88, 34, 62, 99, 69, 82, 67, 59, 85, 74, 4, 36, 16],
[20, 73, 35, 29, 78, 31, 90, 1, 74, 31, 49, 71, 48, 86, 81, 16, 23, 57, 5, 54],
[ 1,70,54,71,83,51,54,69,16,92,33,48,61,43,52, 1,89,19,67,48]
[1, 70, 54, 71, 83, 51, 54, 69, 16, 92, 33, 48, 61, 43, 52, 1, 89, 19, 67, 48],
]
def grid_product(x, y, dx, dy, n):
result = 1
for i in range(n):
@@ -71,5 +72,4 @@ def compute():
if __name__ == "__main__":
print(f"Result for Problem 11: {compute()}")
print(f"Result for Problem 11 is {compute()}")