diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c136cf9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.venv/ +output.txt \ No newline at end of file diff --git a/.gitignore.txt b/.gitignore.txt deleted file mode 100644 index 0cafc1c..0000000 --- a/.gitignore.txt +++ /dev/null @@ -1 +0,0 @@ -.venv/ \ No newline at end of file diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..c7e0245 --- /dev/null +++ b/data.txt @@ -0,0 +1,3 @@ +Хлеб колбаса яйца +молоко печенье +помидоры огурцы майонез \ No newline at end of file diff --git a/script.py b/script.py new file mode 100644 index 0000000..02ae46f --- /dev/null +++ b/script.py @@ -0,0 +1,7 @@ +with open('data.txt', 'r', encoding="utf-8") as infile: + data = infile.read() + +modified_data = data.upper() + +with open('output.txt', 'w', encoding="utf-8") as outfile: + outfile.writelines(modified_data)