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

This commit is contained in:
Иван Кузнецов
2025-03-02 20:47:50 +03:00
parent b492014d5b
commit ac7a8ce5ca
4 changed files with 17 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
.venv/ .venv/
output.txt
+5
View File
@@ -0,0 +1,5 @@
Сегодня был отличный день
я пошёл погулять
на улице прекрасная погода
я проснулся
читать снизу вверх
+6
View File
@@ -0,0 +1,6 @@
numpy==2.2.3
pandas==2.2.3
python-dateutil==2.9.0.post0
pytz==2025.1
six==1.17.0
tzdata==2025.1
+5
View File
@@ -0,0 +1,5 @@
with open("data.txt", "r", encoding="utf-8") as infile:
data = infile.read().upper()
with open("output.txt", "w", encoding="utf-8") as outfile:
outfile.write(data)