Project
This commit is contained in:
2
24.5.py
2
24.5.py
@@ -2,5 +2,5 @@ import re
|
|||||||
|
|
||||||
str1=open('24_5.txt').read()
|
str1=open('24_5.txt').read()
|
||||||
pattern = r"^(?!.*PP).*$"
|
pattern = r"^(?!.*PP).*$"
|
||||||
result=re.findall(r'^.*(P)(\1).*$',str1)
|
result=re.findall(r'.*^(P)(\1).*$',str1)
|
||||||
# print(max(list(map(len,result))))
|
# print(max(list(map(len,result))))
|
||||||
Reference in New Issue
Block a user