From e3574268e90edffc398439b2279ebbdf30f1c24d Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 18 Oct 2025 13:33:37 +0000 Subject: [PATCH 1/9] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=201=20?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=86=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lec_data type.py | 20 ++++++++++++++++++++ lec_imput.py | 10 ++++++++++ lec_lict.py | 20 ++++++++++++++++++++ lec_math_oper.py | 13 +++++++++++++ lec_obget_ref.py | 7 +++++++ lec_print.py | 1 + lec_work_str.py | 14 ++++++++++++++ 7 files changed, 85 insertions(+) create mode 100644 lec_data type.py create mode 100644 lec_imput.py create mode 100644 lec_lict.py create mode 100644 lec_math_oper.py create mode 100644 lec_obget_ref.py create mode 100644 lec_print.py create mode 100644 lec_work_str.py diff --git a/lec_data type.py b/lec_data type.py new file mode 100644 index 000000000..7cc432ce2 --- /dev/null +++ b/lec_data type.py @@ -0,0 +1,20 @@ +type + +type(3) +print(type(3)) + +print(type(3.4)) + +print(type( "молодец")) + +a = "Molodec" +print(type(a)) + +a = ["Molodec", 1, "круто", 6, 8] +print(type(a)) + +print(type(True)) + +print(type(False)) + +print(type(None)) \ No newline at end of file diff --git a/lec_imput.py b/lec_imput.py new file mode 100644 index 000000000..4cbd2ffa3 --- /dev/null +++ b/lec_imput.py @@ -0,0 +1,10 @@ +a = input() +print(a) + +a = input("Введите значениа a: ") +print(a) +print(type(a)) + +a = int(input("Введите значение a")) +print(a) +print(type(a)) \ No newline at end of file diff --git a/lec_lict.py b/lec_lict.py new file mode 100644 index 000000000..40aef3040 --- /dev/null +++ b/lec_lict.py @@ -0,0 +1,20 @@ +a = [1, 3, 6] +print(a[0]) + +b = [8, 10, 11] + +c = a+b +print(c) + +#c = a-b +#print(c) + +print(c*2) + +c.append("Good") +print(c) + +a.append(b) +print(a) + +print(len(a)) \ No newline at end of file diff --git a/lec_math_oper.py b/lec_math_oper.py new file mode 100644 index 000000000..941b87872 --- /dev/null +++ b/lec_math_oper.py @@ -0,0 +1,13 @@ +print(3+4) + +print(3-2) + +print(3*2) + +print(3**4) + +print(3/2) + +print(4//3) + +print(4%3) \ No newline at end of file diff --git a/lec_obget_ref.py b/lec_obget_ref.py new file mode 100644 index 000000000..15c21fc86 --- /dev/null +++ b/lec_obget_ref.py @@ -0,0 +1,7 @@ +s = 3+4 + +memory_id = id(s) +print(s, memory_id) + +s = 5 +print(s) \ No newline at end of file diff --git a/lec_print.py b/lec_print.py new file mode 100644 index 000000000..78713fcd3 --- /dev/null +++ b/lec_print.py @@ -0,0 +1 @@ +print (3, 4) \ No newline at end of file diff --git a/lec_work_str.py b/lec_work_str.py new file mode 100644 index 000000000..47c9a9d46 --- /dev/null +++ b/lec_work_str.py @@ -0,0 +1,14 @@ +a = "Good" +b = "bad" + +print(a+b) + +# print(a-b) + +print(a*3) + +c=50 +d=10 +print(f"Вставим числа {c} и {d}") + +print(len(a)) \ No newline at end of file From 9e1fa085f9c3b760f187c0aa99a07deba3675ed8 Mon Sep 17 00:00:00 2001 From: santa370 Date: Thu, 23 Oct 2025 21:13:58 +0200 Subject: [PATCH 2/9] Create homeowork.py --- homeowork.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 homeowork.py diff --git a/homeowork.py b/homeowork.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/homeowork.py @@ -0,0 +1 @@ + From e8b91eae85e58ce1dc4d29adb5515586546dfca0 Mon Sep 17 00:00:00 2001 From: santa370 Date: Thu, 23 Oct 2025 21:18:42 +0200 Subject: [PATCH 3/9] Rename homeowork.py to lec_homeowork.py --- homeowork.py => lec_homeowork.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename homeowork.py => lec_homeowork.py (100%) diff --git a/homeowork.py b/lec_homeowork.py similarity index 100% rename from homeowork.py rename to lec_homeowork.py From 4543dc6c32d3c091cab6b836d35f0bc440868649 Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 25 Oct 2025 14:03:39 +0200 Subject: [PATCH 4/9] Update lec_homeowork.py --- lec_homeowork.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lec_homeowork.py b/lec_homeowork.py index 8b1378917..de4be355c 100644 --- a/lec_homeowork.py +++ b/lec_homeowork.py @@ -1 +1,8 @@ +print("Hello, World!") +print("Маша + Петя = Любовь") + +print("х = 3 + 4") + +x = 7 +print(x) From de8960be3b872d86992b4235d7df31d7ebbcfd26 Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 25 Oct 2025 14:04:35 +0200 Subject: [PATCH 5/9] Create lec_homework2.py --- lec_homework2.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lec_homework2.py diff --git a/lec_homework2.py b/lec_homework2.py new file mode 100644 index 000000000..23fdae39d --- /dev/null +++ b/lec_homework2.py @@ -0,0 +1,14 @@ +x ="Hello, World!" +print(type(x)) + +x=3 + 4 +print(type(x)) + +x=3 / 4 +print(type(x)) + +x=[1, 2, 5, 10, 100] +print(type(x)) + + + From ae6e9906db28019c2d64117d3aaab048267bcd8f Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 25 Oct 2025 14:05:19 +0200 Subject: [PATCH 6/9] Create lec_homework4.py --- lec_homework4.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lec_homework4.py diff --git a/lec_homework4.py b/lec_homework4.py new file mode 100644 index 000000000..996443088 --- /dev/null +++ b/lec_homework4.py @@ -0,0 +1,18 @@ +a = [1, 5, "Good", "Bad"] + +b = [9, "Blue", "Red", 11] + +c =a[1]+b[3] +print(c) + +c =a[2]+b[2] +print(c) + +c =a[0]*b[0] +print(c) + +c =a[1]**b[3] +print(c) + +c = a + b +print(c) From dc4426276ba52fef0ced65d1b8d7cedf9ff60868 Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 25 Oct 2025 14:06:16 +0200 Subject: [PATCH 7/9] Create lec_homework5.py --- lec_homework5.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lec_homework5.py diff --git a/lec_homework5.py b/lec_homework5.py new file mode 100644 index 000000000..d00d9763d --- /dev/null +++ b/lec_homework5.py @@ -0,0 +1,17 @@ +print("Шляпка гриба, покрытая … кожиц..й, держится на … ножк.. . Снизу шляпка затянута … плёнкой. Когда её уберёшь, откроется нижняя … сторона шляпк.. .") + +a =input("Введите недостоющее слово: покрытая …") + +c= input("Введите недостоющую букву: кожиц..й") + +v =input("Введите недостоющее слово: держится на … ") + +b =input("Введите недостоющую букву: ножк...") + +n =input("Введите недостоющее слово: затянута …") + +m =input("Введите недостоющее слово: нижняя … ") + +s =input("Введите недостоющую букву: шляпк...") + +print("Шляпка гриба, покрытая... кожиц..й, держится на … ножк.. . Снизу шляпка затянута … плёнкой. Когда её уберёшь, откроется нижняя … сторона шляпк.. .") From a327b48af323b21dbcc19ee95ad61cb7d74a2b2e Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 25 Oct 2025 13:00:33 +0000 Subject: [PATCH 8/9] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B5=D0=BB=D0=B0?= =?UTF-8?q?=D0=BB=20=D0=B4=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 ++++ lec_homework1.py | 8 ++++++++ lec_homework2.py | 11 +++++++++++ lec_homework3.py | 9 +++++++++ lec_homework4.py | 18 ++++++++++++++++++ lec_homework5.py | 17 +++++++++++++++++ lec_homework6.py | 22 ++++++++++++++++++++++ 7 files changed, 89 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 lec_homework1.py create mode 100644 lec_homework2.py create mode 100644 lec_homework3.py create mode 100644 lec_homework4.py create mode 100644 lec_homework5.py create mode 100644 lec_homework6.py diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..ba2a6c013 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "python-envs.defaultEnvManager": "ms-python.python:system", + "python-envs.pythonProjects": [] +} \ No newline at end of file diff --git a/lec_homework1.py b/lec_homework1.py new file mode 100644 index 000000000..0a8e97fb7 --- /dev/null +++ b/lec_homework1.py @@ -0,0 +1,8 @@ +print("Hello, World!") + +print("Маша + Петя = Любовь") + +print("х = 3 + 4") + +x =3+4 +print("x =", x) \ No newline at end of file diff --git a/lec_homework2.py b/lec_homework2.py new file mode 100644 index 000000000..3b699e429 --- /dev/null +++ b/lec_homework2.py @@ -0,0 +1,11 @@ +x ="Hello, World!" +print(type(x)) + +x=3 + 4 +print(type(x)) + +x=3 / 4 +print(type(x)) + +x=[1, 2, 5, 10, 100] +print(type(x)) \ No newline at end of file diff --git a/lec_homework3.py b/lec_homework3.py new file mode 100644 index 000000000..b5e24e7d3 --- /dev/null +++ b/lec_homework3.py @@ -0,0 +1,9 @@ +x =3 + +y_1 =(x**1.5)/(x**3+3/x) +y_2 =(4*x**7-x**5) +y_3 =((27*x**4+12*x**3-5*x**2+10)**0.5) + +y =y_1 * y_2 + 80 * y_3 + +print(y) \ No newline at end of file diff --git a/lec_homework4.py b/lec_homework4.py new file mode 100644 index 000000000..6f5d541e5 --- /dev/null +++ b/lec_homework4.py @@ -0,0 +1,18 @@ +a = [1, 5, "Good", "Bad"] + +b = [9, "Blue", "Red", 11] + +c =a[1]+b[3] +print(c) + +c =a[2]+b[2] +print(c) + +c =a[0]*b[0] +print(c) + +c =a[1]**b[3] +print(c) + +c = a + b +print(c) \ No newline at end of file diff --git a/lec_homework5.py b/lec_homework5.py new file mode 100644 index 000000000..659fe2c9f --- /dev/null +++ b/lec_homework5.py @@ -0,0 +1,17 @@ +print("Шляпка гриба, покрытая … кожиц..й, держится на … ножк.. . Снизу шляпка затянута … плёнкой. Когда её уберёшь, откроется нижняя … сторона шляпк.. .") + +a =input("Введите недостоющее слово: покрытая …") + +c= input("Введите недостоющую букву: кожиц..й") + +v =input("Введите недостоющее слово: держится на … ") + +b =input("Введите недостоющую букву: ножк...") + +n =input("Введите недостоющее слово: затянута …") + +m =input("Введите недостоющее слово: нижняя … ") + +s =input("Введите недостоющую букву: шляпк...") + +print(f"Шляпка гриба, покрытая{a} кожиц{c}й, держится на {v} ножк{b} . Снизу шляпка затянута {n} плёнкой. Когда её уберёшь, откроется нижняя {m} сторона шляпк{s} .") \ No newline at end of file diff --git a/lec_homework6.py b/lec_homework6.py new file mode 100644 index 000000000..16b3ca03b --- /dev/null +++ b/lec_homework6.py @@ -0,0 +1,22 @@ +information =[] + +a =float(input("Введите свой возраст: ")) + +x =float(input("Введите свой пол: ")) + +c =float(input("Введите свое имя: ")) + +v =float(input("Введите свой город: ")) + +b =float(input("Введите в каком вы классе: ")) + +information.append(a) +information.append(x) +information.append(c) +information.append(v) +information.append(b) + + + + + From a9f52e211efaaeaff6839365865df71e9f6eaace Mon Sep 17 00:00:00 2001 From: santa370 Date: Sat, 25 Oct 2025 13:16:00 +0000 Subject: [PATCH 9/9] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lec_homework6.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lec_homework6.py b/lec_homework6.py index 16b3ca03b..0ce289bc8 100644 --- a/lec_homework6.py +++ b/lec_homework6.py @@ -2,11 +2,11 @@ a =float(input("Введите свой возраст: ")) -x =float(input("Введите свой пол: ")) +x =input("Введите свой пол: ") -c =float(input("Введите свое имя: ")) +c =input("Введите свое имя: ") -v =float(input("Введите свой город: ")) +v =input("Введите свой город: ") b =float(input("Введите в каком вы классе: "))