diff --git a/.gitignore b/.gitignore index e69de29..0cafc1c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +.venv/ \ No newline at end of file diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..ae52149 --- /dev/null +++ b/data.txt @@ -0,0 +1,2 @@ +Вода 3 +Лимонад 2 \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..70662a5 --- /dev/null +++ b/output.txt @@ -0,0 +1,2 @@ +ВОДА 3 +ЛИМОНАД 2 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a006c6d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +numpy==2.2.4 +pandas==2.2.3 +python-dateutil==2.9.0.post0 +pytz==2025.1 +six==1.17.0 +tzdata==2025.1 diff --git a/script.py b/script.py new file mode 100644 index 0000000..0d16f1f --- /dev/null +++ b/script.py @@ -0,0 +1,9 @@ +with open('data.txt', 'r', encoding='utf-8') as file: + lines = file.readlines() + +upper_lines = [line.upper() for line in lines] + +with open('output.txt', 'w', encoding='utf-8') as file: + file.writelines(upper_lines) + +print("Файл output.txt успешно создан.")