From ac65502e7ea238e35c30c6fc2f25bb8be227831a Mon Sep 17 00:00:00 2001 From: ehermakov Date: Sat, 12 Aug 2023 20:54:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B6=D0=B0?= =?UTF-8?q?=D1=8E=20=D1=87=D0=B5=D1=80=D0=BD=D0=BE=D0=B2=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=94=D0=97=20=D0=BF=D0=BE=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA?= =?UTF-8?q?=D1=83=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE=20=D1=81?= =?UTF-8?q?=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=D0=B0=20=D0=B2=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.idea/.gitignore | 3 +++ .../.idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .../.idea/misc.xml | 4 ++++ .../.idea/modules.xml | 8 ++++++++ .../.idea/vcs.xml | 6 ++++++ .../.idea/ДЗ тестирование 2.iml | 8 ++++++++ .../main.py | 17 +++++++++++++++++ 7 files changed, 52 insertions(+) create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/.idea/.gitignore create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/.idea/inspectionProfiles/profiles_settings.xml create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/.idea/misc.xml create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/.idea/modules.xml create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/.idea/vcs.xml create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/.idea/ДЗ тестирование 2.iml create mode 100644 HNS/Excercises/12082023 Найти второй символ в строке/main.py diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/.gitignore b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/inspectionProfiles/profiles_settings.xml b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/misc.xml b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/misc.xml new file mode 100644 index 0000000..2522946 --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/modules.xml b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/modules.xml new file mode 100644 index 0000000..f1f53c0 --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/vcs.xml b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/vcs.xml new file mode 100644 index 0000000..c2365ab --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/ДЗ тестирование 2.iml b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/ДЗ тестирование 2.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/ДЗ тестирование 2.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/main.py b/HNS/Excercises/12082023 Найти второй символ в строке/main.py new file mode 100644 index 0000000..cea7692 --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/main.py @@ -0,0 +1,17 @@ +def first_recurring_char(s): + array = [] + z = str + if type(s) is str and s is not None: + for i in s: + array.append(i) + k = + 1 + for j in array[0:k - 1]: + if j == i: + p = +1 + print(p) + if p > 1: + z = str(j) + return z + + +print(first_recurring_char("вадвава"))