More pythonic

This commit is contained in:
2026-04-18 15:54:59 +02:00
parent cf417eaca2
commit a1fa273624

View File

@@ -36,7 +36,7 @@ def compute():
"""
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):
n_ = "".join(n)