From 4af8d2d6a4a92901e3ced1b4c4d2d2b5a28c8edd Mon Sep 17 00:00:00 2001 From: egik152 Date: Mon, 23 May 2022 16:29:45 +0300 Subject: [PATCH 1/5] test_distant_1 --- .vscode/launch.json | 2 +- README.md | 2 +- main.py | 2 +- "\320\267\320\260\320\264\320\260\321\207\320\270.py" | 10 ++++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 "\320\267\320\260\320\264\320\260\321\207\320\270.py" diff --git a/.vscode/launch.json b/.vscode/launch.json index 306f58e..7f6b074 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", + "version": "0.2.1", "configurations": [ { "name": "Python: Current File", diff --git a/README.md b/README.md index 4c68e76..6ab8ea5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Tprogramming_2022_zaochn ### Установка виртуального окружения - +Ковязин Ян Алексеевич ```shell pip install pipenv ``` diff --git a/main.py b/main.py index d0b8426..37e3f89 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -print("Hello world") +print("Ковязин Ян Алексеевич") a = 1 width = 5 height = 7 diff --git "a/\320\267\320\260\320\264\320\260\321\207\320\270.py" "b/\320\267\320\260\320\264\320\260\321\207\320\270.py" new file mode 100644 index 0000000..f62ac23 --- /dev/null +++ "b/\320\267\320\260\320\264\320\260\321\207\320\270.py" @@ -0,0 +1,10 @@ +import math + +def calc(a:float, b: float, x: float) -> float: + chisl = (math.sin(a + b*x))**3.5 + znamen = 1 + math.cos(abs(math.log(a + b*x, 2))) + y = chisl / znamen + return y + +if __name__ == "__main__": + print(calc(2.5, 4.6, 1.15)) From 579c22e819116fc8cb36ae572143be255c5e5e30 Mon Sep 17 00:00:00 2001 From: egik152 <80330385+egik152@users.noreply.github.com> Date: Wed, 25 May 2022 22:34:10 +0300 Subject: [PATCH 2/5] end programs bag. --- Pipfile | 2 +- za4et_2022/file_3 | 24 +++++++++++++++++++ za4et_2022/files | 1 + ...\321\207\320\270.py" => zada4i_1 primer.py | 0 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 za4et_2022/file_3 create mode 100644 za4et_2022/files rename "\320\267\320\260\320\264\320\260\321\207\320\270.py" => zada4i_1 primer.py (100%) diff --git a/Pipfile b/Pipfile index 1f26574..e203a0f 100644 --- a/Pipfile +++ b/Pipfile @@ -10,4 +10,4 @@ mypy = "*" flake8 = "*" [requires] -python_version = "3.9" +python_version = "3.10" diff --git a/za4et_2022/file_3 b/za4et_2022/file_3 new file mode 100644 index 0000000..50434ac --- /dev/null +++ b/za4et_2022/file_3 @@ -0,0 +1,24 @@ +import files +q = files.q +print (list(q)) +a= len (q) +print (a) +c=0 +i = 0 +a=int(a) +b=a-1 +a=a/2 +а= round (a) +a=int(float(a)) +for i in range(0, a, 1): + if q[i] == q[b]: + c=c+0 + b=b-1 + else : + c=c+1 + b=b-1 +if c >= 1: + print ("False") +else: + print ("True") +print ("end") diff --git a/za4et_2022/files b/za4et_2022/files new file mode 100644 index 0000000..4521eaa --- /dev/null +++ b/za4et_2022/files @@ -0,0 +1 @@ +q=["adda"] \ No newline at end of file diff --git "a/\320\267\320\260\320\264\320\260\321\207\320\270.py" b/zada4i_1 primer.py similarity index 100% rename from "\320\267\320\260\320\264\320\260\321\207\320\270.py" rename to zada4i_1 primer.py From d4895917a88c3374607b69c89f48031124341f5c Mon Sep 17 00:00:00 2001 From: egik152 <80330385+egik152@users.noreply.github.com> Date: Wed, 25 May 2022 22:40:41 +0300 Subject: [PATCH 3/5] remaster file_3 --- za4et_2022/file_3 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/za4et_2022/file_3 b/za4et_2022/file_3 index 50434ac..c5acf5a 100644 --- a/za4et_2022/file_3 +++ b/za4et_2022/file_3 @@ -2,7 +2,7 @@ import files q = files.q print (list(q)) a= len (q) -print (a) +print ("всего символов" + a) c=0 i = 0 a=int(a) @@ -18,7 +18,6 @@ for i in range(0, a, 1): c=c+1 b=b-1 if c >= 1: - print ("False") + print ("не является палиндромом" + "end") else: - print ("True") -print ("end") + print ("является палиндромом" + "end") \ No newline at end of file From ce3e1ba1fd2407bca0fde16760044f412bf3d62b Mon Sep 17 00:00:00 2001 From: egik152 <80330385+egik152@users.noreply.github.com> Date: Wed, 25 May 2022 22:48:57 +0300 Subject: [PATCH 4/5] versions 2 --- za4et_2022/file_3,version_2 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 za4et_2022/file_3,version_2 diff --git a/za4et_2022/file_3,version_2 b/za4et_2022/file_3,version_2 new file mode 100644 index 0000000..386f706 --- /dev/null +++ b/za4et_2022/file_3,version_2 @@ -0,0 +1,8 @@ +q = "54321" +w = "12345" +q=list(q) +w=list(w) +if q.sort() == w.sort(): + print('Списки идентичны') +else: + print('Списки не идентичны') \ No newline at end of file From 0daa668bdff88f90f98ab26aa07bca243e060c9d Mon Sep 17 00:00:00 2001 From: egik152 <80330385+egik152@users.noreply.github.com> Date: Wed, 25 May 2022 23:11:10 +0300 Subject: [PATCH 5/5] fix --- za4et_2022/file_3,version_2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/za4et_2022/file_3,version_2 b/za4et_2022/file_3,version_2 index 386f706..b1bf912 100644 --- a/za4et_2022/file_3,version_2 +++ b/za4et_2022/file_3,version_2 @@ -1,5 +1,7 @@ -q = "54321" -w = "12345" +e= "1234554321" +r=e/round(len(e)) +q=e[:r] +w=e[r:] q=list(q) w=list(w) if q.sort() == w.sort():