Compare commits
No commits in common. "master" and "fix-my-name" have entirely different histories.
master
...
fix-my-nam
@ -1,2 +0,0 @@
|
|||||||
.vevn/
|
|
||||||
output.txt
|
|
@ -1 +1,3 @@
|
|||||||
создано окружение, файл .gitignore и README
|
Койков Антон Иванович
|
||||||
|
Андрей
|
||||||
|
Вика
|
@ -1,4 +0,0 @@
|
|||||||
МОЛОКО
|
|
||||||
ХЛЕБ
|
|
||||||
КОЛБАСА
|
|
||||||
ЧЕХОСЛОВАКИЯ
|
|
@ -1,9 +0,0 @@
|
|||||||
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.")
|
|
Loading…
Reference in New Issue
Block a user