4 Commits
5 changed files with 20 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
.vevn/
output.txt
+1 -3
View File
@@ -1,3 +1 @@
Койков Антон Иванович создано окружение, файл .gitignore и README
Андрей
Янактаева Виктория Евгеньевна
+4
View File
@@ -0,0 +1,4 @@
Молоко
Хлеб
Колбаса
Чехословакия
+4
View File
@@ -0,0 +1,4 @@
МОЛОКО
ХЛЕБ
КОЛБАСА
ЧЕХОСЛОВАКИЯ
+9
View File
@@ -0,0 +1,9 @@
with open('data.txt', 'r', encoding='utf-8') as input_file:
lines = input_file.readlines()
upper_case_lines = [line.upper() for line in lines]
with open('output.txt', 'w', encoding='utf-8') as output_file:
output_file.writelines(upper_case_lines)
print("Данные успешно преобразованы и записаны в output.txt.")