10 lines
246 B
Python
10 lines
246 B
Python
with open("data.txt", "r") as file:
|
|
lines = file.readlines()
|
|
|
|
lines = [line.strip().upper() for line in lines]
|
|
|
|
with open("output.txt", "w") as file:
|
|
file.write("\n".join(lines))
|
|
|
|
print("Файл output.txt успешно создан!")
|