Adopted new convention from template
This commit is contained in:
parent
7771280215
commit
08ca75445f
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Created on 25 Jul 2022
|
Created on 25 Jul 2022
|
||||||
|
|
||||||
@ -31,9 +31,9 @@ def compute():
|
|||||||
cube_str = "".join(sorted(list(str(number**3))))
|
cube_str = "".join(sorted(list(str(number**3))))
|
||||||
cubes[cube_str].append(number**3)
|
cubes[cube_str].append(number**3)
|
||||||
if len(cubes[cube_str]) == 5:
|
if len(cubes[cube_str]) == 5:
|
||||||
|
|
||||||
return min(cubes[cube_str])
|
return min(cubes[cube_str])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print(f"Result for Problem 62 is {compute()}")
|
||||||
print(f"Result for Problem {int(62):003d}: {compute()}")
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user