From 9b1d4156f6199276ec646f720bd989ea19397030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=90=D0=BD=D0=BE=D1=85?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 5 Mar 2025 21:09:08 +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=20input.txt,=20sc?= =?UTF-8?q?ript.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input.txt | 3 +++ output.txt | 0 script.py | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 input.txt create mode 100644 output.txt create mode 100644 script.py diff --git a/input.txt b/input.txt new file mode 100644 index 0000000..6903a5a --- /dev/null +++ b/input.txt @@ -0,0 +1,3 @@ +print("Hello, world!") +System.out.print("Hello, world!"); +std::cout<<"Hello, world!"; \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..e69de29 diff --git a/script.py b/script.py new file mode 100644 index 0000000..e3b8071 --- /dev/null +++ b/script.py @@ -0,0 +1,11 @@ +with open("output.txt", "r", encoding="utf-8") as file: + lines = file.readlines() + +# Преобразование: строки в верхний регистр +processed_lines = [line.upper() for line in lines] + +# Запись результата в output.txt +with open("output.txt", "w", encoding="utf-8") as file: + file.writelines(processed_lines) + +print("Данные успешно обработаны и сохранены в output.txt!")