Добавлены файлы data.txt, script.py

This commit is contained in:
Дмитрий Орлов 2025-03-15 00:31:43 +03:00
parent aa40169c49
commit 440fa57a13
2 changed files with 11 additions and 0 deletions

10
2.py Normal file
View File

@ -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')

1
data.txt Normal file
View File

@ -0,0 +1 @@
Боковой Ветхий Возгласить Дебет Дезинформировать Жмых Кольт Нахлебник Продолжаться Цедилка Заползать Котироваться Натренировать Периодичный Преувеличить Притулиться Расстелить Седой Статный Транжир