diff --git a/input.txt b/input.txt new file mode 100644 index 0000000..6903a5a --- /dev/null +++ b/input.txt @@ -0,0 +1,3 @@ +print("Hello, world!") +System.out.print("Hello, world!"); +std::cout<<"Hello, world!"; \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..e69de29 diff --git a/script.py b/script.py new file mode 100644 index 0000000..e3b8071 --- /dev/null +++ b/script.py @@ -0,0 +1,11 @@ +with open("output.txt", "r", encoding="utf-8") as file: + lines = file.readlines() + +# Преобразование: строки в верхний регистр +processed_lines = [line.upper() for line in lines] + +# Запись результата в output.txt +with open("output.txt", "w", encoding="utf-8") as file: + file.writelines(processed_lines) + +print("Данные успешно обработаны и сохранены в output.txt!")