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 успешно создан!")