Adopted new convention from template
This commit is contained in:
@@ -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()}")
|
||||
|
||||
Reference in New Issue
Block a user