From 1fb999e9b80cc22bbdf40eed599c13802dce0eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B8=D1=81=D0=BA=D1=83=D0=BD?= Date: Thu, 15 May 2025 16:28:52 +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,=20scr?= =?UTF-8?q?ipt.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.txt | 3 +++ output.txt | 3 +++ requirements.txt | 6 ++++++ script.py | 7 +++++++ 4 files changed, 19 insertions(+) create mode 100644 data.txt create mode 100644 output.txt create mode 100644 requirements.txt create mode 100644 script.py diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..ef00cab --- /dev/null +++ b/data.txt @@ -0,0 +1,3 @@ +хлеб молоко шоколад +бекон киндер +макароны сыр сливки \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..9123b0e --- /dev/null +++ b/output.txt @@ -0,0 +1,3 @@ +ХЛЕБ МОЛОКО ШОКОЛАД +БЕКОН КИНДЕР +МАКАРОНЫ СЫР СЛИВКИ \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e01b7b6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +numpy==2.2.5 +pandas==2.2.3 +python-dateutil==2.9.0.post0 +pytz==2025.2 +six==1.17.0 +tzdata==2025.2 diff --git a/script.py b/script.py new file mode 100644 index 0000000..02ae46f --- /dev/null +++ b/script.py @@ -0,0 +1,7 @@ +with open('data.txt', 'r', encoding="utf-8") as infile: + data = infile.read() + +modified_data = data.upper() + +with open('output.txt', 'w', encoding="utf-8") as outfile: + outfile.writelines(modified_data)