diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/1laba.iml b/.idea/1laba.iml new file mode 100644 index 0000000..3028cff --- /dev/null +++ b/.idea/1laba.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..b7e0448 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..289c25a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..24529f4 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/SPLITOVIK b/SPLITOVIK new file mode 160000 index 0000000..8629846 --- /dev/null +++ b/SPLITOVIK @@ -0,0 +1 @@ +Subproject commit 8629846afae97cb9acad0175778eb9085a97348a diff --git a/code.py b/code.py new file mode 100644 index 0000000..e61597f --- /dev/null +++ b/code.py @@ -0,0 +1,10 @@ +with open('data.txt', 'r', encoding='utf-8') as f: + lines = f.readlines() + +processed_lines = [f"_{line.strip().upper()}_" for line in lines] + +with open('output.txt', 'w', encoding='utf-8') as f: + for line in processed_lines: + f.write(line + '\n') + +print("Данные успешно преобразованы в КУРСИВНЫЙ КАПС и записаны в output.txt") \ No newline at end of file diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..01ed667 --- /dev/null +++ b/data.txt @@ -0,0 +1,5 @@ + деревяшка + дом + рвбота + семья + пятёрочка \ No newline at end of file diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..94b146e --- /dev/null +++ b/output.txt @@ -0,0 +1,5 @@ +_ДЕРЕВЯШКА_ +_ДОМ_ +_РВБОТА_ +_СЕМЬЯ_ +_ПЯТЁРОЧКА_