Задание 3 выполнено в файле data.txt

This commit is contained in:
Павел Терехов 2025-03-06 23:52:51 +03:00
parent ac35c098af
commit 7011efc4e6
3 changed files with 18 additions and 0 deletions

3
data.txt Normal file
View File

@ -0,0 +1,3 @@
Hello, World!
This is a test file.
12345

View File

@ -0,0 +1,9 @@
with open('data.txt', 'r') as file:
lines = file.readlines()
transformed_lines = [line.upper() for line in lines]
with open('output.txt', 'w') as output_file:
output_file.writelines(transformed_lines)
print("Данные успешно преобразованы и записаны в файл output.txt")

6
requirements.txt Normal file
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