From e5fa54aa76dc632a63efd8f120c85c33296f31ed Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Tue, 11 Nov 2025 23:53:01 +0500 Subject: [PATCH] 24 PP --- 24.5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/24.5.py b/24.5.py index 2b00472..daf135a 100644 --- a/24.5.py +++ b/24.5.py @@ -1,7 +1,7 @@ import re str1=open('24_5.txt').read().strip('\n') -result=re.split(r'(?<=PP)',str1) +result=re.split(r'(?<=PP)',str1) #Позитивная ретроспективная проверка (Positive Lookbehind) # result=re.split(r'P(?=P)',str1) print(max(list(map(len,result))))