Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python-envs.defaultEnvManager": "ms-python.python:system",
"python-envs.pythonProjects": []
}
20 changes: 20 additions & 0 deletions lec_data type.py
Original file line number Diff line number Diff line change
@@ -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))
8 changes: 8 additions & 0 deletions lec_homeowork.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
print("Hello, World!")

print("Маша + Петя = Любовь")

print("х = 3 + 4")

x = 7
print(x)
8 changes: 8 additions & 0 deletions lec_homework1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
print("Hello, World!")

print("Маша + Петя = Любовь")

print("х = 3 + 4")

x =3+4
print("x =", x)
10 changes: 10 additions & 0 deletions lec_homework2.py
Original file line number Diff line number Diff line change
@@ -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]
9 changes: 9 additions & 0 deletions lec_homework3.py
Original file line number Diff line number Diff line change
@@ -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)
17 changes: 17 additions & 0 deletions lec_homework4.py
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions lec_homework5.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
print("Шляпка гриба, покрытая … кожиц..й, держится на … ножк.. . Снизу шляпка затянута … плёнкой. Когда её уберёшь, откроется нижняя … сторона шляпк.. .")

a =input("Введите недостоющее слово: покрытая …")

c= input("Введите недостоющую букву: кожиц..й")

v =input("Введите недостоющее слово: держится на … ")

b =input("Введите недостоющую букву: ножк...")

n =input("Введите недостоющее слово: затянута …")

m =input("Введите недостоющее слово: нижняя … ")

s =input("Введите недостоющую букву: шляпк...")
22 changes: 22 additions & 0 deletions lec_homework6.py
Original file line number Diff line number Diff line change
@@ -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)





10 changes: 10 additions & 0 deletions lec_imput.py
Original file line number Diff line number Diff line change
@@ -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))
20 changes: 20 additions & 0 deletions lec_lict.py
Original file line number Diff line number Diff line change
@@ -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))
13 changes: 13 additions & 0 deletions lec_math_oper.py
Original file line number Diff line number Diff line change
@@ -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)
7 changes: 7 additions & 0 deletions lec_obget_ref.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
s = 3+4

memory_id = id(s)
print(s, memory_id)

s = 5
print(s)
1 change: 1 addition & 0 deletions lec_print.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print (3, 4)
14 changes: 14 additions & 0 deletions lec_work_str.py
Original file line number Diff line number Diff line change
@@ -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))