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