diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..0fbbcba --- /dev/null +++ b/data.txt @@ -0,0 +1,3 @@ +Hello, World! +This is a test file. +12345 \ No newline at end of file diff --git a/main.py b/main.py index e69de29..7d0fcf7 100644 --- a/main.py +++ b/main.py @@ -0,0 +1,9 @@ +with open('data.txt', 'r') as file: + lines = file.readlines() + +transformed_lines = [line.upper() for line in lines] + +with open('output.txt', 'w') as output_file: + output_file.writelines(transformed_lines) + +print("Данные успешно преобразованы и записаны в файл output.txt") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..de6c89b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +numpy==2.2.3 +pandas==2.2.3 +python-dateutil==2.9.0.post0 +pytz==2025.1 +six==1.17.0 +tzdata==2025.1