From 071769de416f8b2fd57f7dc581439b2d2b782718 Mon Sep 17 00:00:00 2001 From: karishishka Date: Fri, 10 Oct 2025 16:42:23 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=9E=D0=9F=D0=9A=D0=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lec_data_type.py | 21 +++++++++++++++++++++ lec_input.py | 9 +++++++++ lec_list.py | 16 ++++++++++++++++ lec_math_operartions.py | 14 ++++++++++++++ lec_objects_reference.py | 7 +++++++ lec_print.py | 9 +++++++++ lec_str.py | 15 +++++++++++++++ task_1.py | 4 ++++ task_2.py | 5 +++++ task_3.py | 2 ++ 10 files changed, 102 insertions(+) create mode 100644 lec_data_type.py create mode 100644 lec_input.py create mode 100644 lec_list.py create mode 100644 lec_math_operartions.py create mode 100644 lec_objects_reference.py create mode 100644 lec_print.py create mode 100644 lec_str.py create mode 100644 task_1.py create mode 100644 task_2.py create mode 100644 task_3.py diff --git a/lec_data_type.py b/lec_data_type.py new file mode 100644 index 000000000..c499fb5c5 --- /dev/null +++ b/lec_data_type.py @@ -0,0 +1,21 @@ +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)) diff --git a/lec_input.py b/lec_input.py new file mode 100644 index 000000000..b0508bfeb --- /dev/null +++ b/lec_input.py @@ -0,0 +1,9 @@ +a = input() +print(a) + +a = input("введение а: ") +print(a) +print(type(a)) + +a = int(input("Введите целое число a: " )) +print(type(a)) diff --git a/lec_list.py b/lec_list.py new file mode 100644 index 000000000..efb758f1c --- /dev/null +++ b/lec_list.py @@ -0,0 +1,16 @@ +a = [1, 3, 6] +print(a[0]) + +b = [8, 10, 11] + +c = a + b +print(c) + +print(c * 2) + +c.append("Good") +print(c) + +a.append(b) +print(a) +print(len(a)) diff --git a/lec_math_operartions.py b/lec_math_operartions.py new file mode 100644 index 000000000..94613e8d6 --- /dev/null +++ b/lec_math_operartions.py @@ -0,0 +1,14 @@ +print(3 + 4) + +print(4 - 3) + +print(3*4) + +print(4**3) + +print(4 / 3) + +print(4 // 3) + +print(4 % 3) + diff --git a/lec_objects_reference.py b/lec_objects_reference.py new file mode 100644 index 000000000..5bd57ef5a --- /dev/null +++ b/lec_objects_reference.py @@ -0,0 +1,7 @@ +s = 3 + 4 + +memory_id = id(s) +print(s, memory_id) + +s = 5 +print(s) diff --git a/lec_print.py b/lec_print.py new file mode 100644 index 000000000..891c2d79c --- /dev/null +++ b/lec_print.py @@ -0,0 +1,9 @@ +print + +print() + +print(3) + +print(3 + 4) + +print(3, 4) \ No newline at end of file diff --git a/lec_str.py b/lec_str.py new file mode 100644 index 000000000..82926bb2b --- /dev/null +++ b/lec_str.py @@ -0,0 +1,15 @@ +a = "Good" + +b = "Bad" + +print(a + b) + +# print(a - b) + +print(a * 3) + +c = 50 +d = 10 +print(f"Вставим числа {c} и {d}") + +print(len(a)) diff --git a/task_1.py b/task_1.py new file mode 100644 index 000000000..66ba95a17 --- /dev/null +++ b/task_1.py @@ -0,0 +1,4 @@ +print("Hello, World!") +print("Маша + Петя = Любовь") +print("x = 3 + 4") +print("7") \ No newline at end of file diff --git a/task_2.py b/task_2.py new file mode 100644 index 000000000..fcca03833 --- /dev/null +++ b/task_2.py @@ -0,0 +1,5 @@ +print(type("Hello, World!")) +print(type(3 + 4)) +print(type(3 / 4)) +print(type([1, 2, 5, 10, 100])) + diff --git a/task_3.py b/task_3.py new file mode 100644 index 000000000..ab85ac8c4 --- /dev/null +++ b/task_3.py @@ -0,0 +1,2 @@ +x = 3 +y = (x ** 3 ** 0.5)/(X ** 3)*(4 * X)*(4*) \ No newline at end of file