diff options
Diffstat (limited to 'progs/a668.py')
-rw-r--r-- | progs/a668.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a668.py b/progs/a668.py new file mode 100644 index 0000000..49dd545 --- /dev/null +++ b/progs/a668.py @@ -0,0 +1,6 @@ +import re
+def start_withp(words):
+ for w in words:
+ m = re.match("(P\w+)\W(P\w+)", w)
+ if m:
+ return m.groups()
\ No newline at end of file |