Adopted new convention from template

This commit is contained in:
2022-09-26 20:44:32 +02:00
parent 963f6ad3b0
commit fea1ad18e0

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python
""" """
Created on 15 Sep 2018 Created on 15 Sep 2018
@@ -11,7 +11,7 @@ https://projecteuler.net/problem=18
from utils import timeit from utils import timeit
triangle = [ # Mutable triangle = [
[75], [75],
[95, 64], [95, 64],
[17, 47, 82], [17, 47, 82],
@@ -29,6 +29,7 @@ triangle = [ # Mutable
[4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23], [4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23],
] ]
@timeit("Problem 18") @timeit("Problem 18")
def compute(): def compute():
""" """
@@ -52,5 +53,4 @@ def compute():
if __name__ == "__main__": if __name__ == "__main__":
print(f"Result for Problem 18 is {compute()}")
print(f"Result for Problem 18: {compute()}")