diff --git a/.gitignore.md b/.gitignore.md new file mode 100644 index 0000000..c172b57 --- /dev/null +++ b/.gitignore.md @@ -0,0 +1,2 @@ +.vevn/ +output.txt \ No newline at end of file diff --git a/README.md b/README.md index 21464f7..a941aa9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -Койков Антон Иванович -Андрей -Янактаева Виктория Евгеньевна \ No newline at end of file +Вариант : Установите numpy и pandas \ No newline at end of file diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..aab02e2 --- /dev/null +++ b/data.txt @@ -0,0 +1,4 @@ +Молоко +Хлеб +Колбаса +Чехословакия \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..5168043 --- /dev/null +++ b/output.txt @@ -0,0 +1,4 @@ +МОЛОКО +ХЛЕБ +КОЛБАСА +ЧЕХОСЛОВАКИЯ \ No newline at end of file diff --git a/script.py b/script.py new file mode 100644 index 0000000..8cb2c5d --- /dev/null +++ b/script.py @@ -0,0 +1,9 @@ +with open('data.txt', 'r', encoding='utf-8') as input_file: + lines = input_file.readlines() + +upper_case_lines = [line.upper() for line in lines] + +with open('output.txt', 'w', encoding='utf-8') as output_file: + output_file.writelines(upper_case_lines) + +print("Данные успешно преобразованы и записаны в output.txt.")