diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2022-01-23 19:46:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-23 19:46:16 +0000 |
| commit | a3ef8061e8b28fd26ff9aa4ee3fc9f39ceb55dc1 (patch) | |
| tree | e65b7cbfb63e9b6bbcdb6b173bfec9215e70151d /challenge-148/abigail/python/ch-1.py | |
| parent | 919e4948116f4a0f1c1c2580b856dd221568dcb0 (diff) | |
| parent | 895121c6f016a222efcfe4a99df34b8138fb2055 (diff) | |
| download | perlweeklychallenge-club-a3ef8061e8b28fd26ff9aa4ee3fc9f39ceb55dc1.tar.gz perlweeklychallenge-club-a3ef8061e8b28fd26ff9aa4ee3fc9f39ceb55dc1.tar.bz2 perlweeklychallenge-club-a3ef8061e8b28fd26ff9aa4ee3fc9f39ceb55dc1.zip | |
Merge pull request #5552 from Abigail/abigail/week-148
Abigail/week 148
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") |
