diff --git a/.gitignore b/.gitignore index 0cafc1c..c136cf9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.venv/ \ No newline at end of file +.venv/ +output.txt \ No newline at end of file diff --git a/.script.py.swp b/.script.py.swp new file mode 100644 index 0000000..36c8867 Binary files /dev/null and b/.script.py.swp differ diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..163b553 --- /dev/null +++ b/data.txt @@ -0,0 +1,6 @@ +картофель +лук +чеснок +помидоры +капуста +огурцы \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..aea9dad --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +numpy==2.4.6 +pandas==3.0.3 +python-dateutil==2.9.0.post0 +six==1.17.0 +tzdata==2026.2 diff --git a/script.py b/script.py new file mode 100644 index 0000000..d10ab3d --- /dev/null +++ b/script.py @@ -0,0 +1,12 @@ +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 создан") \ No newline at end of file