From 08ca75445f89bd0bb3cdf31f4664b745668d52e8 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Mon, 3 Oct 2022 16:07:13 +0200 Subject: [PATCH] Adopted new convention from template --- src/Python/Problem062.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Python/Problem062.py b/src/Python/Problem062.py index a0a33f3..1aaa8cd 100644 --- a/src/Python/Problem062.py +++ b/src/Python/Problem062.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """ Created on 25 Jul 2022 @@ -31,9 +31,9 @@ def compute(): cube_str = "".join(sorted(list(str(number**3)))) cubes[cube_str].append(number**3) if len(cubes[cube_str]) == 5: + return min(cubes[cube_str]) if __name__ == "__main__": - - print(f"Result for Problem {int(62):003d}: {compute()}") + print(f"Result for Problem 62 is {compute()}")