From 65aab6c3fc15813f093c2083190da60f2a5c4b41 Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Tue, 11 Nov 2025 14:47:21 +0500 Subject: [PATCH] Project --- 24.5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/24.5.py b/24.5.py index ae90b68..6dd7f80 100644 --- a/24.5.py +++ b/24.5.py @@ -2,5 +2,5 @@ import re str1=open('24_5.txt').read() pattern = r"^(?!.*PP).*$" -result=re.findall(r'^.*(P)(\1).*$',str1) +result=re.findall(r'.*^(P)(\1).*$',str1) # print(max(list(map(len,result)))) \ No newline at end of file