Adopted new convention from template
This commit is contained in:
parent
505258ca27
commit
787c771162
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Created on 07 Oct 2021
|
Created on 07 Oct 2021
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ def compute():
|
|||||||
ans = 0
|
ans = 0
|
||||||
for a in range(100):
|
for a in range(100):
|
||||||
for b in range(100):
|
for b in range(100):
|
||||||
num = sum([int(digit) for digit in str(a ** b)])
|
num = sum([int(digit) for digit in str(a**b)])
|
||||||
if num > ans:
|
if num > ans:
|
||||||
ans = num
|
ans = num
|
||||||
|
|
||||||
@ -34,5 +34,4 @@ def compute():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print(f"Result for Problem 56 is {compute()}")
|
||||||
print(f"Result for Problem 56: {compute()}")
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user