More pythonic
This commit is contained in:
@@ -36,7 +36,7 @@ def compute():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
ans = []
|
ans = []
|
||||||
pandigital = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
pandigital = [str(number) for number in range(1, 10)]
|
||||||
|
|
||||||
for n in permutations(pandigital):
|
for n in permutations(pandigital):
|
||||||
n_ = "".join(n)
|
n_ = "".join(n)
|
||||||
|
|||||||
Reference in New Issue
Block a user