From 9b1daa8fe58a28e3a5cd8720b164576951d7ee8a Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Fri, 21 Nov 2025 15:40:29 +0500 Subject: [PATCH] project --- 24.7.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/24.7.py b/24.7.py index 9adea50..f7b032b 100644 --- a/24.7.py +++ b/24.7.py @@ -18,15 +18,15 @@ # for match in matches]) -f = open('24_7.txt').read().strip() -a = [] -for i in range(len(f) - 1): - if f[i]+f[i+1] == 'CD': - a.append(i) -print(max([p1-p for p,p1 in zip(a, a[161:])])) +# f = open('24_7.txt').read().strip() +# a = [] +# for i in range(len(f) - 1): +# if f[i]+f[i+1] == 'CD': +# a.append(i) +# print(max([p1-p for p,p1 in zip(a, a[161:])])) -# lst1 = [0, 1, 2, 3, 4, 5] +lst1 = [0, 1, 2, 3, 4, 5, 7, 8, 9, 10] # lst2 = [5, 3, 2, 0, 4, 1] # lst3 = ['нуль', 'один', 'два', 'три', 'четыре', 'пять'] -# for a, b, c in zip(lst1, lst2, lst3): -# print(f'{c} {a} {b}') \ No newline at end of file +for a, b in zip(lst1,lst1[8:]): + print(f'{a} {b}') \ No newline at end of file