Adopted new convention from template
This commit is contained in:
parent
e8d85bdd0e
commit
e0dd2faa94
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Created on 26 Sep 2021
|
Created on 26 Sep 2021
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ def compute():
|
|||||||
and 6x, contain the same digits.
|
and 6x, contain the same digits.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for number in range(123456, 1_000_000):
|
for number in range(123_456, 1_000_000):
|
||||||
if (
|
if (
|
||||||
sorted(str(number))
|
sorted(str(number))
|
||||||
== sorted(str(2 * number))
|
== sorted(str(2 * number))
|
||||||
@ -35,5 +35,4 @@ def compute():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print(f"Result for Problem 52 is {compute()}")
|
||||||
print(f"Result for Problem 52: {compute()}")
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user