From 9d37e7b6c2601db0c59dab6d2f804ceb081db834 Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Tue, 11 Nov 2025 13:57:25 +0500 Subject: [PATCH] Project --- 24.5.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 24.5.py diff --git a/24.5.py b/24.5.py new file mode 100644 index 0000000..ae90b68 --- /dev/null +++ b/24.5.py @@ -0,0 +1,6 @@ +import re + +str1=open('24_5.txt').read() +pattern = r"^(?!.*PP).*$" +result=re.findall(r'^.*(P)(\1).*$',str1) +# print(max(list(map(len,result)))) \ No newline at end of file