Adopted new convention from template

This commit is contained in:
David Doblas Jiménez 2022-10-02 18:37:56 +02:00
parent 6fd86f8cde
commit d464a0f434

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Created on 12 Sep 2021
@ -19,10 +19,10 @@ def compute():
Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
"""
series = sum(i**i for i in range(1, 1001))
return str(series)[-10:]
if __name__ == "__main__":
print(f"Result for Problem 48: {compute()}")
print(f"Result for Problem 48 is {compute()}")