diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..ef00cab --- /dev/null +++ b/data.txt @@ -0,0 +1,3 @@ +хлеб молоко шоколад +бекон киндер +макароны сыр сливки \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..9123b0e --- /dev/null +++ b/output.txt @@ -0,0 +1,3 @@ +ХЛЕБ МОЛОКО ШОКОЛАД +БЕКОН КИНДЕР +МАКАРОНЫ СЫР СЛИВКИ \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e01b7b6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +numpy==2.2.5 +pandas==2.2.3 +python-dateutil==2.9.0.post0 +pytz==2025.2 +six==1.17.0 +tzdata==2025.2 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)