diff options
| author | 冯昶 <fengchang@novel-supertv.com> | 2022-01-24 22:05:59 +0800 |
|---|---|---|
| committer | 冯昶 <fengchang@novel-supertv.com> | 2022-01-24 22:05:59 +0800 |
| commit | 1ff224c623b04c549b24ec402ea43131cd910588 (patch) | |
| tree | d5b82082d798443119bb481f34bfdb0c4d49863f /challenge-148/abigail/python/ch-1.py | |
| parent | 59e30e384e1e158ad9da7494efdb4cb810c75c88 (diff) | |
| parent | 58fe0dd310fd5641512650fa783103ddbb5fc384 (diff) | |
| download | perlweeklychallenge-club-1ff224c623b04c549b24ec402ea43131cd910588.tar.gz perlweeklychallenge-club-1ff224c623b04c549b24ec402ea43131cd910588.tar.bz2 perlweeklychallenge-club-1ff224c623b04c549b24ec402ea43131cd910588.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'challenge-148/abigail/python/ch-1.py')
| -rw-r--r-- | challenge-148/abigail/python/ch-1.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/challenge-148/abigail/python/ch-1.py b/challenge-148/abigail/python/ch-1.py new file mode 100644 index 0000000000..f0d3591271 --- /dev/null +++ b/challenge-148/abigail/python/ch-1.py @@ -0,0 +1,19 @@ +#!/usr/local/bin/python3 + +# +# See https://theweeklychallenge.org/blog/perl-weekly-challenge-148 +# + +# +# Run as: python ch-1.py +# + +import sys, re + +for i in range (101): + if not (i == 0 or re . search (r'[1789]', str (i)) + or re . search (r'^2.', str (i)) + or re . search (r'[35]$', str (i))): + sys . stdout . write (str (i) + " ") + +sys . stdout . write ("\n") |
