diff options
| author | Paulo Custodio <pauloscustodio@gmail.com> | 2021-10-26 09:52:33 +0100 |
|---|---|---|
| committer | Paulo Custodio <pauloscustodio@gmail.com> | 2021-10-26 09:52:33 +0100 |
| commit | 4fbb301ccb5620c8bcee20462bd1bb8145b0d13c (patch) | |
| tree | ca2cd6d56d2437c433c0913480dd769a0566911b /challenge-134/paulo-custodio/python/ch-1.py | |
| parent | de4d4e92a64a4cd61ae6db8da41662c88553772a (diff) | |
| download | perlweeklychallenge-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.py | 8 |
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]) |
