From e351e8b09972b06d353dec64561eb5040593131d Mon Sep 17 00:00:00 2001 From: shariik Date: Tue, 16 Dec 2025 11:46:09 +0500 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=2011?= =?UTF-8?q?=20=D0=BF=D0=B0=D1=80=D0=B0=D0=B3=D1=80=D0=B0=D1=84=203.1=20?= =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3.1_lesson.11.20.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 3.1_lesson.11.20.py diff --git a/3.1_lesson.11.20.py b/3.1_lesson.11.20.py new file mode 100644 index 0000000..ce77f34 --- /dev/null +++ b/3.1_lesson.11.20.py @@ -0,0 +1,17 @@ +***Задание 2 Параграф 3.1*** +***Создайте мини-поисковик, который по ключевому слову покажет подходящие заголовки страниц.*** + + + +if name == "main": + count = int(input()) + + titles = [] + for _ in range(count): + titles.append(input()) + + query = input() + + for title in titles: + if query.lower() in title.lower(): + print(title) \ No newline at end of file