12 lines
290 B
Python
12 lines
290 B
Python
with open("data.txt", "r", encoding="utf-8") as file:
|
|
lines = file.readlines()
|
|
|
|
upper_lines = []
|
|
|
|
for line in lines:
|
|
upper_lines.append(line.upper())
|
|
|
|
with open("output.txt", "w", encoding="utf-8") as file:
|
|
file.writelines(upper_lines)
|
|
|
|
print("Файл output.txt создан") |