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

This commit is contained in:
Алёна Пискун 2025-05-15 16:28:52 +03:00
parent e53a02d2d6
commit 1fb999e9b8
4 changed files with 19 additions and 0 deletions

3
data.txt Normal file
View File

@ -0,0 +1,3 @@
хлеб молоко шоколад
бекон киндер
макароны сыр сливки

3
output.txt Normal file
View File

@ -0,0 +1,3 @@
ХЛЕБ МОЛОКО ШОКОЛАД
БЕКОН КИНДЕР
МАКАРОНЫ СЫР СЛИВКИ

6
requirements.txt Normal file
View File

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

7
script.py Normal file
View File

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