From 440fa57a139c9801460ec6c7dc583b94a9aca485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=9E=D1=80?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= Date: Sat, 15 Mar 2025 00:31:43 +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 --- 2.py | 10 ++++++++++ data.txt | 1 + 2 files changed, 11 insertions(+) create mode 100644 2.py create mode 100644 data.txt diff --git a/2.py b/2.py new file mode 100644 index 0000000..875c4af --- /dev/null +++ b/2.py @@ -0,0 +1,10 @@ +with open('C:\GITPRACTIC/data.txt', 'r', encoding='utf-8') as file: + content = file.read() + +content=content.split() + +content = [i.upper() for i in content] + +with open('C:\GITPRACTIC/output.txt', 'w', encoding='utf-8') as file: + for line in content: + file.write(line + '\n') \ No newline at end of file diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..27049eb --- /dev/null +++ b/data.txt @@ -0,0 +1 @@ +Боковой Ветхий Возгласить Дебет Дезинформировать Жмых Кольт Нахлебник Продолжаться Цедилка Заползать Котироваться Натренировать Периодичный Преувеличить Притулиться Расстелить Седой Статный Транжир \ No newline at end of file