Задание 3 выполнено в файле data.txt
This commit is contained in:
@@ -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")
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user