summaryrefslogtreecommitdiff
path: root/progs/a668.py
blob: 49dd54553664a9b65ecd9e4fe8aecbb54f3846a7 (plain)
1
2
3
4
5
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()