From 0ad4487115e35bd6c2246713b71f9c4778752e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BB=D0=B8=D0=B7=D0=B0=D0=B2=D0=B5=D1=82=D0=B0=20?= =?UTF-8?q?=D0=A1=D1=8E=D0=B7=D0=B5=D0=B2=D0=B0?= Date: Thu, 6 Mar 2025 19:54:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20data.txt=20?= =?UTF-8?q?=D0=B8=20script.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Часть 2 | 2 +- Часть 3/.gitignore | 1 - Часть 3/data.txt | 5 ----- Часть 3/script.py | 13 ------------- 4 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 Часть 3/.gitignore delete mode 100644 Часть 3/data.txt delete mode 100644 Часть 3/script.py diff --git a/Часть 2 b/Часть 2 index 441409e..0cc09de 160000 --- a/Часть 2 +++ b/Часть 2 @@ -1 +1 @@ -Subproject commit 441409e902df456affdce77ae30987fe12ca15cb +Subproject commit 0cc09de42eb587f112285d06541294b379973039 diff --git a/Часть 3/.gitignore b/Часть 3/.gitignore deleted file mode 100644 index 059d53c..0000000 --- a/Часть 3/.gitignore +++ /dev/null @@ -1 +0,0 @@ -output.txt \ No newline at end of file diff --git a/Часть 3/data.txt b/Часть 3/data.txt deleted file mode 100644 index b6c26bd..0000000 --- a/Часть 3/data.txt +++ /dev/null @@ -1,5 +0,0 @@ -Бананы -Творог -Йогурт -Вишня -Чай \ No newline at end of file diff --git a/Часть 3/script.py b/Часть 3/script.py deleted file mode 100644 index ecc4cea..0000000 --- a/Часть 3/script.py +++ /dev/null @@ -1,13 +0,0 @@ -# Открываем data.txt и читаем содержимое -with open("data.txt", "r", encoding="utf-8") as file: - lines = file.readlines() - -# Преобразуем данные: переводим в верхний регистр и сортируем -processed_lines = sorted(line.strip().upper() for line in lines) - -# Записываем результат в output.txt -with open("output.txt", "w", encoding="utf-8") as file: - for line in processed_lines: - file.write(line + "\n") - -print("Файл output.txt успешно создан!")