From 5f981e8cea42749b65e66b9190f2e8826c52663f Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Mon, 18 Sep 2023 16:56:22 +0300 Subject: [PATCH 01/39] =?UTF-8?q?=D0=B7=D0=B0=D0=BA=D0=BE=D0=B4=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=D0=B8=20=D1=87=D0=B8=D1=81=D0=BB?= =?UTF-8?q?=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_3.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Practice/amarkov/modul3_3.py diff --git a/Practice/amarkov/modul3_3.py b/Practice/amarkov/modul3_3.py new file mode 100644 index 00000000..5e5352f7 --- /dev/null +++ b/Practice/amarkov/modul3_3.py @@ -0,0 +1,11 @@ +user = int(input("введите число, что хотите закодировать :")) +best = int(input("введите число, с помощью которого хотите закодировать: ")) +result = (int(user) + int(best)) +print(f"введите результат: {result} ") + + + + + + + From 50fbb06852d811a2177ae2e37ff194b354449710 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Mon, 18 Sep 2023 17:12:38 +0300 Subject: [PATCH 02/39] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=B8=20?= =?UTF-8?q?=D1=80=D0=B0=D1=81=D0=BA=D0=BE=D0=B4=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/exzample 1.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Practice/amarkov/exzample 1.py diff --git a/Practice/amarkov/exzample 1.py b/Practice/amarkov/exzample 1.py new file mode 100644 index 00000000..970216ba --- /dev/null +++ b/Practice/amarkov/exzample 1.py @@ -0,0 +1,7 @@ +x= 3 +y = 2 +urt = 3 - 2 +print(urt) + +decod = urt + y + From 4480e477724479a2b93a0787bbc4a85de5a9e500 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 19 Sep 2023 17:59:40 +0300 Subject: [PATCH 03/39] =?UTF-8?q?=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=BC=D1=83=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=B4=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20"a"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_3/moduk3_3(1).py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Practice/amarkov/modul3_3/moduk3_3(1).py diff --git a/Practice/amarkov/modul3_3/moduk3_3(1).py b/Practice/amarkov/modul3_3/moduk3_3(1).py new file mode 100644 index 00000000..e9ca309e --- /dev/null +++ b/Practice/amarkov/modul3_3/moduk3_3(1).py @@ -0,0 +1,5 @@ +a = input("введите первое число: ") +b = input("введите второе число: ") +print("Result",int(a) + int(b)) + + From f0e5b4fa1911dcab0efbf670a16422c4b4fcdc55 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 19 Sep 2023 18:04:12 +0300 Subject: [PATCH 04/39] =?UTF-8?q?=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=BC=D1=83=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D1=81=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8=20=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20"a"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_3/modul3_3(2) | 1 + 1 file changed, 1 insertion(+) create mode 100644 Practice/amarkov/modul3_3/modul3_3(2) diff --git a/Practice/amarkov/modul3_3/modul3_3(2) b/Practice/amarkov/modul3_3/modul3_3(2) new file mode 100644 index 00000000..acec5084 --- /dev/null +++ b/Practice/amarkov/modul3_3/modul3_3(2) @@ -0,0 +1 @@ +decod = print("Result",int(a) - int(b)) \ No newline at end of file From 6546301beba0b40048c6e57e1f3a5db82f345532 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 19 Sep 2023 18:14:39 +0300 Subject: [PATCH 05/39] =?UTF-8?q?=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=BC=D1=83=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D1=81=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8=20=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20"a"=20?= =?UTF-8?q?=D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D1=83=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_3/modul3_3(2) | 1 - Practice/amarkov/modul3_3/modul3_3(2).py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 Practice/amarkov/modul3_3/modul3_3(2) create mode 100644 Practice/amarkov/modul3_3/modul3_3(2).py diff --git a/Practice/amarkov/modul3_3/modul3_3(2) b/Practice/amarkov/modul3_3/modul3_3(2) deleted file mode 100644 index acec5084..00000000 --- a/Practice/amarkov/modul3_3/modul3_3(2) +++ /dev/null @@ -1 +0,0 @@ -decod = print("Result",int(a) - int(b)) \ No newline at end of file diff --git a/Practice/amarkov/modul3_3/modul3_3(2).py b/Practice/amarkov/modul3_3/modul3_3(2).py new file mode 100644 index 00000000..330aca70 --- /dev/null +++ b/Practice/amarkov/modul3_3/modul3_3(2).py @@ -0,0 +1,3 @@ +a = input("введите первое число: ") +b = input("введите второе число: ") +decod = print("Result",int(a) - int(b)) From 0396ac4c3abc845821c691d463f6a43fbfea3f90 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 22 Sep 2023 16:59:58 +0300 Subject: [PATCH 06/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/exzample 1.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Practice/amarkov/exzample 1.py b/Practice/amarkov/exzample 1.py index 970216ba..4e22c14f 100644 --- a/Practice/amarkov/exzample 1.py +++ b/Practice/amarkov/exzample 1.py @@ -1,7 +1,8 @@ -x= 3 -y = 2 -urt = 3 - 2 -print(urt) +word = "арзамас" +print(len(word)) # узнал сколько в слове символов -decod = urt + y +for el in range(len(word)): # перебрал слово в цикле + print(el,[0,7]) +for el in range(len(word)): # обратиться по индексу к каждой букве слова + print(word[el]) From d1ae1d2ae13ad174662e3ea968437e9ea64e3457 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 23 Sep 2023 13:40:27 +0300 Subject: [PATCH 07/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/exzample 1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Practice/amarkov/exzample 1.py b/Practice/amarkov/exzample 1.py index 4e22c14f..675ca39c 100644 --- a/Practice/amarkov/exzample 1.py +++ b/Practice/amarkov/exzample 1.py @@ -6,3 +6,4 @@ for el in range(len(word)): # обратиться по индексу к каждой букве слова print(word[el]) + print(word.find("а")) From f8ebcf6ea3238adfea097d16d0f3e0c4bfb50dc4 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sun, 24 Sep 2023 17:21:15 +0300 Subject: [PATCH 08/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_4.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Practice/amarkov/modul3_4.py diff --git a/Practice/amarkov/modul3_4.py b/Practice/amarkov/modul3_4.py new file mode 100644 index 00000000..ad816bd1 --- /dev/null +++ b/Practice/amarkov/modul3_4.py @@ -0,0 +1,13 @@ +word = "арзамас" +print(len(word)) # узнал сколько в слове символов + +for el in range(len(word)): # перебрал слово в цикле + print(el,[0,7]) + +for el in range(len(word)): # обратиться по индексу к каждой букве слова + print(word[el]) + +for word in range(7): + print(word) + word = "а" + print(word) From 1de2767cbc1fab4890ef7a68657f3197428d90ad Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 26 Sep 2023 15:31:41 +0300 Subject: [PATCH 09/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_4.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Practice/amarkov/modul3_4.py b/Practice/amarkov/modul3_4.py index ad816bd1..45077e70 100644 --- a/Practice/amarkov/modul3_4.py +++ b/Practice/amarkov/modul3_4.py @@ -4,10 +4,5 @@ for el in range(len(word)): # перебрал слово в цикле print(el,[0,7]) -for el in range(len(word)): # обратиться по индексу к каждой букве слова - print(word[el]) +if word[el] == "а": -for word in range(7): - print(word) - word = "а" - print(word) From 0140866d363802bb727db58c749170eaa1277506 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 26 Sep 2023 15:33:46 +0300 Subject: [PATCH 10/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_4.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Practice/amarkov/modul3_4.py b/Practice/amarkov/modul3_4.py index 45077e70..39d61547 100644 --- a/Practice/amarkov/modul3_4.py +++ b/Practice/amarkov/modul3_4.py @@ -5,4 +5,5 @@ print(el,[0,7]) if word[el] == "а": + word[el] ="*" From d57c55032db997fb711a01ccb032ee1b40be5fa7 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 26 Sep 2023 15:42:39 +0300 Subject: [PATCH 11/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_4.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Practice/amarkov/modul3_4.py b/Practice/amarkov/modul3_4.py index 39d61547..15238567 100644 --- a/Practice/amarkov/modul3_4.py +++ b/Practice/amarkov/modul3_4.py @@ -5,5 +5,7 @@ print(el,[0,7]) if word[el] == "а": - word[el] ="*" + word[el] = "*" + + From 6f0e784e60d150860272b0a7fbfb03a6e02fa969 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 26 Sep 2023 17:14:09 +0300 Subject: [PATCH 12/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul3_4.py b/Practice/amarkov/modul3_4.py index 15238567..399c0fdd 100644 --- a/Practice/amarkov/modul3_4.py +++ b/Practice/amarkov/modul3_4.py @@ -4,7 +4,7 @@ for el in range(len(word)): # перебрал слово в цикле print(el,[0,7]) -if word[el] == "а": +if word[el] == "а": #проверили каждую букву на соответствие букве а word[el] = "*" From 99caee8e5215db110b34a2111d2a26289c32bce0 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 26 Sep 2023 17:32:41 +0300 Subject: [PATCH 13/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_4.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Practice/amarkov/modul3_4.py b/Practice/amarkov/modul3_4.py index 399c0fdd..036fc026 100644 --- a/Practice/amarkov/modul3_4.py +++ b/Practice/amarkov/modul3_4.py @@ -4,6 +4,7 @@ for el in range(len(word)): # перебрал слово в цикле print(el,[0,7]) + if word[el] == "а": #проверили каждую букву на соответствие букве а word[el] = "*" From 7d33bc68597483b2c0ac0f1720a22ec7cdf0bcff Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Tue, 3 Oct 2023 16:02:35 +0300 Subject: [PATCH 14/39] =?UTF-8?q?=D0=BA=D0=B0=D0=BA=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B2=D0=B5=D1=80=D0=BD=D1=83=D1=82=D1=8C=20=D0=B8=20?= =?UTF-8?q?=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B8=D1=82=D1=8C=20=D1=81=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_5.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Practice/amarkov/modul3_5.py diff --git a/Practice/amarkov/modul3_5.py b/Practice/amarkov/modul3_5.py new file mode 100644 index 00000000..5a022fa0 --- /dev/null +++ b/Practice/amarkov/modul3_5.py @@ -0,0 +1,6 @@ +a = "топот" +b = a[:: - 1] # получаем перевёрнутую строку +if a == b: # сравниваем строки + print("True") +else: + print("False") From dc7165db026a9221160fdeabeface89dadf04896 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Wed, 4 Oct 2023 13:05:31 +0300 Subject: [PATCH 15/39] =?UTF-8?q?=D0=BA=D0=B0=D0=BA=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B2=D0=B5=D1=80=D0=BD=D1=83=D1=82=D1=8C=20=D0=B8=20?= =?UTF-8?q?=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B8=D1=82=D1=8C=20=D1=81=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/exzample 1.py | 9 --------- Practice/amarkov/modul3_3.py | 11 ----------- Practice/amarkov/modul3_5b.py | 4 ++++ 3 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 Practice/amarkov/exzample 1.py delete mode 100644 Practice/amarkov/modul3_3.py create mode 100644 Practice/amarkov/modul3_5b.py diff --git a/Practice/amarkov/exzample 1.py b/Practice/amarkov/exzample 1.py deleted file mode 100644 index 675ca39c..00000000 --- a/Practice/amarkov/exzample 1.py +++ /dev/null @@ -1,9 +0,0 @@ -word = "арзамас" -print(len(word)) # узнал сколько в слове символов - -for el in range(len(word)): # перебрал слово в цикле - print(el,[0,7]) - -for el in range(len(word)): # обратиться по индексу к каждой букве слова - print(word[el]) - print(word.find("а")) diff --git a/Practice/amarkov/modul3_3.py b/Practice/amarkov/modul3_3.py deleted file mode 100644 index 5e5352f7..00000000 --- a/Practice/amarkov/modul3_3.py +++ /dev/null @@ -1,11 +0,0 @@ -user = int(input("введите число, что хотите закодировать :")) -best = int(input("введите число, с помощью которого хотите закодировать: ")) -result = (int(user) + int(best)) -print(f"введите результат: {result} ") - - - - - - - diff --git a/Practice/amarkov/modul3_5b.py b/Practice/amarkov/modul3_5b.py new file mode 100644 index 00000000..85263b62 --- /dev/null +++ b/Practice/amarkov/modul3_5b.py @@ -0,0 +1,4 @@ +a = "топот" +b = len (a) // 2 # измерили длину слова, делим слово пополам +b1 = a[0 : n] +b2 = a[n: len(a)] \ No newline at end of file From 33c80226907cf33e019a38f7f5b51c00be44456d Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Wed, 4 Oct 2023 20:06:10 +0300 Subject: [PATCH 16/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul3_5b.py | 4 ---- Practice/amarkov/modul4_1.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 Practice/amarkov/modul3_5b.py create mode 100644 Practice/amarkov/modul4_1.py diff --git a/Practice/amarkov/modul3_5b.py b/Practice/amarkov/modul3_5b.py deleted file mode 100644 index 85263b62..00000000 --- a/Practice/amarkov/modul3_5b.py +++ /dev/null @@ -1,4 +0,0 @@ -a = "топот" -b = len (a) // 2 # измерили длину слова, делим слово пополам -b1 = a[0 : n] -b2 = a[n: len(a)] \ No newline at end of file diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py new file mode 100644 index 00000000..020b28f9 --- /dev/null +++ b/Practice/amarkov/modul4_1.py @@ -0,0 +1,11 @@ +for i in range(1, 101): + print(i) + + if i % 3: + print("Fizz") + else: +if i % 5: + print("Buzz") +else: +if i % 15: + print("FizzBuzz") From 1c9dd653bbf1d9b075f5a1316b0e0917e4bcb9e1 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Thu, 5 Oct 2023 18:41:05 +0300 Subject: [PATCH 17/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB,=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 020b28f9..b1f1981d 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -1,11 +1,10 @@ for i in range(1, 101): print(i) - - if i % 3: - print("Fizz") - else: -if i % 5: - print("Buzz") +if i % 3: + print("Fizz") else: -if i % 15: - print("FizzBuzz") + if i % 5: + print("Buzz") + else: + if i % 15: + print("FizzBuzz") From 3d136fdf403da5709bce21af8601eb13650f7aaa Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Thu, 5 Oct 2023 19:24:49 +0300 Subject: [PATCH 18/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB,=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index b1f1981d..80a81c84 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -1,4 +1,4 @@ -for i in range(1, 101): +for i in range(1, 101, 15): print(i) if i % 3: print("Fizz") From 2106725f08d3cd8729b3e200d68c888319a7366d Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 13:06:43 +0300 Subject: [PATCH 19/39] =?UTF-8?q?=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=BE=20?= =?UTF-8?q?=D0=B1=D1=8B=D1=82=D1=8C=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=BE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 80a81c84..08790983 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -1,4 +1,4 @@ -for i in range(1, 101, 15): +for i in range(1, 101, 5): print(i) if i % 3: print("Fizz") @@ -8,3 +8,5 @@ else: if i % 15: print("FizzBuzz") + else: + print("i") From 3a087af31722c5a80c2e90db8fab89f503cd5c45 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 16:16:57 +0300 Subject: [PATCH 20/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Practice/amarkov/modul4_2.py diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py new file mode 100644 index 00000000..b1db9d88 --- /dev/null +++ b/Practice/amarkov/modul4_2.py @@ -0,0 +1,7 @@ +a = input("Введите число: ") +numbers = [] + +for char in a: + if char.isdigit(): + print(char) + From bb9e85847ab6ae85840914ed032a05546db6ff8d Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 18:37:03 +0300 Subject: [PATCH 21/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index b1db9d88..bb3a26c0 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -5,3 +5,4 @@ if char.isdigit(): print(char) +nums = [] \ No newline at end of file From 05ea52380c5d351ea90834834d057f5744e17533 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 18:38:30 +0300 Subject: [PATCH 22/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 08790983..99321523 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -1,12 +1,12 @@ -for i in range(1, 101, 5): +for i in range(1, 101, 15): print(i) -if i % 3: - print("Fizz") + if i % 15: + print("FizzBuzz") else: if i % 5: print("Buzz") else: - if i % 15: - print("FizzBuzz") + if i % 3: + print("Fizz") else: print("i") From cd4a11f1b2f2e5a9034fc4b6e6358dea397257ad Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 18:40:02 +0300 Subject: [PATCH 23/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 99321523..5373621b 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -10,3 +10,4 @@ print("Fizz") else: print("i") +0 \ No newline at end of file From 13450fc74f2c868f8529b416c02ef4f11c43efde Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 18:40:52 +0300 Subject: [PATCH 24/39] =?UTF-8?q?=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F?= =?UTF-8?q?=D0=BB=20=D0=BC=D0=B5=D1=81=D1=82=D0=B0=D0=BC=D0=B8=20=D1=83?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 5373621b..99321523 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -10,4 +10,3 @@ print("Fizz") else: print("i") -0 \ No newline at end of file From dc9ca1966b83b39d5da5c079a60e8a3763749297 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 18:54:45 +0300 Subject: [PATCH 25/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BE=20=D1=81=20"i"=20=D0=BD=D0=B0=20i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 99321523..25eb1e92 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -9,4 +9,4 @@ if i % 3: print("Fizz") else: - print("i") + print(i) From e52db46804859ba96c3baa6f5994ecbaceb8b327 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 6 Oct 2023 19:08:09 +0300 Subject: [PATCH 26/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=BD=D0=B0=20=D0=B2=D1=81=D1=8F=D0=BA?= =?UTF-8?q?=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index bb3a26c0..b1db9d88 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -5,4 +5,3 @@ if char.isdigit(): print(char) -nums = [] \ No newline at end of file From 34043d1194fa9b6d335f5f764fe412d9c2318c08 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 7 Oct 2023 14:00:22 +0300 Subject: [PATCH 27/39] =?UTF-8?q?=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index b1db9d88..866c8081 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -2,6 +2,8 @@ numbers = [] for char in a: - if char.isdigit(): - print(char) + print(char) +i = 1 +for char in a: + print(f"{i} цифра равна {char}") \ No newline at end of file From 05802e27ca71260e112d853fbe0e135abc21a64d Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 7 Oct 2023 14:02:05 +0300 Subject: [PATCH 28/39] =?UTF-8?q?=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index 866c8081..883956a1 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -6,4 +6,4 @@ i = 1 for char in a: - print(f"{i} цифра равна {char}") \ No newline at end of file + print(f"{i} = {char}") \ No newline at end of file From 8d63735a4a4019b9bb3f6772d77abc597fc764ef Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 7 Oct 2023 14:03:17 +0300 Subject: [PATCH 29/39] =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index 883956a1..866c8081 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -6,4 +6,4 @@ i = 1 for char in a: - print(f"{i} = {char}") \ No newline at end of file + print(f"{i} цифра равна {char}") \ No newline at end of file From c82da1c05d6a9c72f826dd6e99fb149992f16dcb Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 7 Oct 2023 14:11:24 +0300 Subject: [PATCH 30/39] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index 866c8081..4c43a190 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -4,6 +4,6 @@ for char in a: print(char) -i = 1 +i = 1 # ввели переменную от которой начать счёт for char in a: print(f"{i} цифра равна {char}") \ No newline at end of file From 068f732b30869b3b98edf7871458e06dbb887479 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 7 Oct 2023 17:06:04 +0300 Subject: [PATCH 31/39] =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_2.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Practice/amarkov/modul4_2.py b/Practice/amarkov/modul4_2.py index 4c43a190..4a968633 100644 --- a/Practice/amarkov/modul4_2.py +++ b/Practice/amarkov/modul4_2.py @@ -1,9 +1,8 @@ a = input("Введите число: ") numbers = [] -for char in a: - print(char) - i = 1 # ввели переменную от которой начать счёт + for char in a: - print(f"{i} цифра равна {char}") \ No newline at end of file + print(f"{i} цифра равна {char}") + i += 1 From 3d2ca061c7f0f640aec7533d6e54832c2de81cc0 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Thu, 12 Oct 2023 17:54:35 +0300 Subject: [PATCH 32/39] =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_3.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Practice/amarkov/modul4_3.py diff --git a/Practice/amarkov/modul4_3.py b/Practice/amarkov/modul4_3.py new file mode 100644 index 00000000..e693c804 --- /dev/null +++ b/Practice/amarkov/modul4_3.py @@ -0,0 +1,8 @@ +a = "" # Строка, куда будем набирать символы. +sym = input("Введите символ:") +print(a.isdecimal()) + +while sym != "stop": + a += sym + sym = input("Введите символ:") + print(a) From e544a070ba76c45caa9606c22e56b520430e263e Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 14 Oct 2023 18:06:37 +0300 Subject: [PATCH 33/39] =?UTF-8?q?=D1=85=D0=BE=D1=87=D1=83=20=D1=81=D0=BE?= =?UTF-8?q?=D1=85=D1=80=D0=B0=D0=BD=D0=B8=D1=82=D1=8C=20=D1=87=D1=82=D0=BE?= =?UTF-8?q?=20=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_4.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Practice/amarkov/modul4_4.py diff --git a/Practice/amarkov/modul4_4.py b/Practice/amarkov/modul4_4.py new file mode 100644 index 00000000..4e8eac0c --- /dev/null +++ b/Practice/amarkov/modul4_4.py @@ -0,0 +1,6 @@ +a = ("Ты сам-то понял, что написал?", "Аргументируй", "И?") # это кортеж с ответами компъютера + +for i in a: + print(i) + +b = input("Что-то понял, что-нет") From ec597535f68ffd506ac7ceeaa51a1fcc67683a7c Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sun, 15 Oct 2023 14:23:17 +0300 Subject: [PATCH 34/39] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BF=D0=B8=D1=8F=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8F=204=5F4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/exzample.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Practice/amarkov/exzample.py diff --git a/Practice/amarkov/exzample.py b/Practice/amarkov/exzample.py new file mode 100644 index 00000000..2784f4a2 --- /dev/null +++ b/Practice/amarkov/exzample.py @@ -0,0 +1,24 @@ +a = ("Ты сам-то понял, что написал?", "Аргументируй", "И?") # это кортеж с ответами компъютера + + +for i in a: + print(i) + + b = input("что - то понял, что - то нет: ") + +if b != "хватит": + print(a[0]) +else: + print("До свидания") + + c = input("без комментариев: ") + + if c != "хватит": + print(a[1]) +else: + print("До свидания") + + if c == "хватит": + print(a[2]) +else: + print("хватит") \ No newline at end of file From 23b9001fd0cc0ce2c9e2d7b938918d4022b7b0f5 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Wed, 18 Oct 2023 14:21:48 +0300 Subject: [PATCH 35/39] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BF=D0=B8=D1=8F=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8F=204=5F4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_4.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_4.py b/Practice/amarkov/modul4_4.py index 4e8eac0c..5d6d8505 100644 --- a/Practice/amarkov/modul4_4.py +++ b/Practice/amarkov/modul4_4.py @@ -1,6 +1,14 @@ a = ("Ты сам-то понял, что написал?", "Аргументируй", "И?") # это кортеж с ответами компъютера + for i in a: print(i) -b = input("Что-то понял, что-нет") +b = input("что - то понял, что - то нет: ") + +while b != "хватит": + print(a[0]) + +a = [0] +a += 1 +print(a) \ No newline at end of file From 197f4b8b58b47b079df97086ef3b306ae6cf3a14 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Wed, 18 Oct 2023 14:23:20 +0300 Subject: [PATCH 36/39] =?UTF-8?q?=D1=82=D0=B0=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_4.py b/Practice/amarkov/modul4_4.py index 5d6d8505..656bd948 100644 --- a/Practice/amarkov/modul4_4.py +++ b/Practice/amarkov/modul4_4.py @@ -11,4 +11,4 @@ a = [0] a += 1 -print(a) \ No newline at end of file +print(a): \ No newline at end of file From 04da033ea68b90ad15fc4ada318a39ee7b19c4da Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Wed, 18 Oct 2023 14:24:17 +0300 Subject: [PATCH 37/39] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Practice/amarkov/modul4_4.py b/Practice/amarkov/modul4_4.py index 656bd948..5d6d8505 100644 --- a/Practice/amarkov/modul4_4.py +++ b/Practice/amarkov/modul4_4.py @@ -11,4 +11,4 @@ a = [0] a += 1 -print(a): \ No newline at end of file +print(a) \ No newline at end of file From b2d63b1ef37da23c5abea3a4334956966c6db0d8 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Fri, 20 Oct 2023 17:35:28 +0300 Subject: [PATCH 38/39] =?UTF-8?q?=D1=82=D1=80=D0=B5=D0=BD=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/exzample.py | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/Practice/amarkov/exzample.py b/Practice/amarkov/exzample.py index 2784f4a2..d4475b2f 100644 --- a/Practice/amarkov/exzample.py +++ b/Practice/amarkov/exzample.py @@ -1,24 +1,10 @@ -a = ("Ты сам-то понял, что написал?", "Аргументируй", "И?") # это кортеж с ответами компъютера - - -for i in a: - print(i) - - b = input("что - то понял, что - то нет: ") - -if b != "хватит": - print(a[0]) -else: - print("До свидания") - - c = input("без комментариев: ") - - if c != "хватит": - print(a[1]) -else: - print("До свидания") - - if c == "хватит": - print(a[2]) -else: - print("хватит") \ No newline at end of file +name = input("Введите имя рыцаря: ") +name_zdorov = input("Кол-во здоровья: ") +name_yron = input("урон от его меча: ") +name_zapas = input("Кол-во зелий здоровья: ") +print("Герой по имени", name, "отправляется в сказочное приключение. На его пути встречается мерзкий, злой Гоблин") +name_goblin = input("Имя Гоблина:") +gobli_zdorov = input("Здоровье Гоблина: ") +goblin_yron = input("Урон здоровья рыцарю: ") +goblin_zapas = input("запас здоровья Гоблина: ") +print("Отважный рыцарь встречает Гоблина на своём пути. У него", name_goblin, "Здоровья", gobli_zdorov, "а урон от его меча", goblin_yron,) \ No newline at end of file From 572ec649c53e43cc59cf410219d54cc2719198f9 Mon Sep 17 00:00:00 2001 From: "markoffarteom_1987@mail.ru" Date: Sat, 21 Oct 2023 16:47:25 +0300 Subject: [PATCH 39/39] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Practice/amarkov/modul4_1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Practice/amarkov/modul4_1.py b/Practice/amarkov/modul4_1.py index 25eb1e92..d34448f8 100644 --- a/Practice/amarkov/modul4_1.py +++ b/Practice/amarkov/modul4_1.py @@ -1,12 +1,12 @@ for i in range(1, 101, 15): print(i) - if i % 15: + if i % 15 == 0: print("FizzBuzz") else: - if i % 5: + if i % 5 == 0: print("Buzz") else: - if i % 3: + if i % 3 == 0: print("Fizz") else: print(i)