aboutsummaryrefslogtreecommitdiff
path: root/challenge-134/paulo-custodio/python/ch-1.py
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-10-26 09:52:33 +0100
committerPaulo Custodio <pauloscustodio@gmail.com>2021-10-26 09:52:33 +0100
commit4fbb301ccb5620c8bcee20462bd1bb8145b0d13c (patch)
treeca2cd6d56d2437c433c0913480dd769a0566911b /challenge-134/paulo-custodio/python/ch-1.py
parentde4d4e92a64a4cd61ae6db8da41662c88553772a (diff)
downloadperlweeklychallenge-club-4fbb301ccb5620c8bcee20462bd1bb8145b0d13c.tar.gz
perlweeklychallenge-club-4fbb301ccb5620c8bcee20462bd1bb8145b0d13c.tar.bz2
perlweeklychallenge-club-4fbb301ccb5620c8bcee20462bd1bb8145b0d13c.zip
Whitespace
Diffstat (limited to 'challenge-134/paulo-custodio/python/ch-1.py')
-rw-r--r--challenge-134/paulo-custodio/python/ch-1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/challenge-134/paulo-custodio/python/ch-1.py b/challenge-134/paulo-custodio/python/ch-1.py
index 814125549b..55590a928a 100644
--- a/challenge-134/paulo-custodio/python/ch-1.py
+++ b/challenge-134/paulo-custodio/python/ch-1.py
@@ -3,17 +3,17 @@
# TASK #1 > Pandigital Numbers
# Submitted by: Mohammad S Anwar
# Write a script to generate first 5 Pandigital Numbers in base 10.
-#
+#
# As per the wikipedia, it says:
-#
-# A pandigital number is an integer that in a given base has among its
+#
+# A pandigital number is an integer that in a given base has among its
# significant digits each digit used in the base at least once.
# solution from https://oeis.org/A050278
from itertools import permutations
-A050278 = [int(''.join(d)) for d in permutations('0123456789', 10) if d[0] != '0']
+A050278 = [int(''.join(d)) for d in permutations('0123456789', 10) if d[0] != '0']
A050278.sort()
for i in range(0, 5):
print(A050278[i])