From e0dd2faa945a413b0ef542b6781b17c82883101a Mon Sep 17 00:00:00 2001 From: daviddoji Date: Sun, 2 Oct 2022 18:50:30 +0200 Subject: [PATCH] Adopted new convention from template --- src/Python/Problem052.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Python/Problem052.py b/src/Python/Problem052.py index e3ce8ea..e70e6b0 100644 --- a/src/Python/Problem052.py +++ b/src/Python/Problem052.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """ Created on 26 Sep 2021 @@ -22,7 +22,7 @@ def compute(): and 6x, contain the same digits. """ - for number in range(123456, 1_000_000): + for number in range(123_456, 1_000_000): if ( sorted(str(number)) == sorted(str(2 * number)) @@ -35,5 +35,4 @@ def compute(): if __name__ == "__main__": - - print(f"Result for Problem 52: {compute()}") + print(f"Result for Problem 52 is {compute()}")