-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction_leniviy.py
More file actions
37 lines (33 loc) · 817 Bytes
/
function_leniviy.py
File metadata and controls
37 lines (33 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'''def butterbrott(breads, butters, cheeses, sousiges):
bread = (breads * 15) // 2
butter = butters // 5
cheese = cheeses // 10
sousige = sousiges // 2
amount = min(bread, butter, cheese, sousige)
return amount
print(butterbrott(10, 100, 250, 1500
b = ['Antohny', 'Nikita', 'Leva']
index = 1
for friend in b:
print(index, '.', friend, sep='')
index = index + 1
class phone():
model = ' '
color = ' '
produced_by = ' '
size = 0
weight = 0
iphoneSE = phone()
iphoneSE = phone(model = 'SE', color = 'white', produced_by = 'China', size = 5, weight = 15)
#phone.model
phone.model
class square:
weight = 0
height = 0
def area(self):
return self.weight * self.height
square_1 = square()
square_1.weight = 2
square_1.height = 2
square_1.area()
'''