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_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_homeowork.py b/lec_homeowork.py new file mode 100644 index 000000000..de4be355c --- /dev/null +++ b/lec_homeowork.py @@ -0,0 +1,8 @@ +print("Hello, World!") + +print("Маша + Петя = Любовь") + +print("х = 3 + 4") + +x = 7 +print(x) 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..8a67198cb --- /dev/null +++ b/lec_homework2.py @@ -0,0 +1,10 @@ +x ="Hello, World!" +print(type(x)) + +x=3 + 4 +print(type(x)) + +x=3 / 4 +print(type(x)) + +x=[1, 2, 5, 10, 100] \ 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..eebf276e5 --- /dev/null +++ b/lec_homework4.py @@ -0,0 +1,17 @@ +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 \ No newline at end of file diff --git a/lec_homework5.py b/lec_homework5.py new file mode 100644 index 000000000..554bcfb9f --- /dev/null +++ b/lec_homework5.py @@ -0,0 +1,15 @@ +print("Шляпка гриба, покрытая … кожиц..й, держится на … ножк.. . Снизу шляпка затянута … плёнкой. Когда её уберёшь, откроется нижняя … сторона шляпк.. .") + +a =input("Введите недостоющее слово: покрытая …") + +c= input("Введите недостоющую букву: кожиц..й") + +v =input("Введите недостоющее слово: держится на … ") + +b =input("Введите недостоющую букву: ножк...") + +n =input("Введите недостоющее слово: затянута …") + +m =input("Введите недостоющее слово: нижняя … ") + +s =input("Введите недостоющую букву: шляпк...") diff --git a/lec_homework6.py b/lec_homework6.py new file mode 100644 index 000000000..0ce289bc8 --- /dev/null +++ b/lec_homework6.py @@ -0,0 +1,22 @@ +information =[] + +a =float(input("Введите свой возраст: ")) + +x =input("Введите свой пол: ") + +c =input("Введите свое имя: ") + +v =input("Введите свой город: ") + +b =float(input("Введите в каком вы классе: ")) + +information.append(a) +information.append(x) +information.append(c) +information.append(v) +information.append(b) + + + + + 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