From 9d1fcca8e938fbe5176cfb12251079021a85dc00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D1=8E=D1=80=D0=BD=D0=B8=D0=BD=20=D0=9A=D0=B8=D1=80?= =?UTF-8?q?=D0=B8=D0=BB=D0=BB?= Date: Tue, 4 Mar 2025 21:52:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D1=8B=20data.txt=20=D0=B8=20script.py=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B8=D0=B3=D0=BD=D0=BE=D1=80=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20out?= =?UTF-8?q?put.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.txt | 6 ------ script.py | 12 ------------ 2 files changed, 18 deletions(-) delete mode 100644 data.txt delete mode 100644 script.py diff --git a/data.txt b/data.txt deleted file mode 100644 index bf1420d..0000000 --- a/data.txt +++ /dev/null @@ -1,6 +0,0 @@ -сосиски -молоко -майонез -огурцы -помидоры -хлеб \ No newline at end of file diff --git a/script.py b/script.py deleted file mode 100644 index aa7be84..0000000 --- a/script.py +++ /dev/null @@ -1,12 +0,0 @@ -# script.py - -with open('data.txt', 'r', encoding='utf-8') as file: - lines = file.readlines() - -uppercase_lines = [line.strip().upper() for line in lines] - -with open('output.txt', 'w', encoding='utf-8') as output_file: - for line in uppercase_lines: - output_file.write(line + '\n') - -print("Данные успешно записаны в output.txt")