-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsession9.py
42 lines (37 loc) · 1 KB
/
session9.py
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
38
39
40
41
42
# import turtle
# tintin=turtle.Turtle()
# tintin.color("brown")
# for i in range (4):
# tintin.forward(170)
# tintin.right(90)
# tintin.left(50)
# tintin.forward(130)
# tintin.left(81)
# tintin.backward(130)
# tintin.up()
# for i in range (4):
# tintin.forward(70)
# tintin.right(90)
# turtle.done() ##draw a house
# def widget_weigh(n):
# widget=75
# return widget*n
# def gadgets_weigh(n):
# gadget=115
# return gadget*n
# n_widget=int(input("Enter number of widgets: "))
# n_gadgets=int(input("Enter number of gadgets: "))
# w=widget_weigh(n_widget)
# g=gadgets_weigh(n_gadgets)
# result=w+g
# print(f"weigh={result} grams") ##calculate the weigh for a store
# money=[[1,3,5],[4,7,8],[3,2,1]]
# summ=[]
# def sum():
# for i in range (len(money)):
# result=money[i][0]+money[i][1]+money[i][2]
# summ.append(result)
# sum()
# print(max(summ))
# n=summ.index(max(summ))+1
# print(f"The richest is the buisness man number:{n}") ##Who's the richest??