-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorporatecasestudies_3.py
More file actions
78 lines (50 loc) · 1.5 KB
/
Copy pathcorporatecasestudies_3.py
File metadata and controls
78 lines (50 loc) · 1.5 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Life of developer starts
# excerise --> actvity
# data --> symbol ( syntax)
#. reading data from others --> question --> variables whatexcerisedo
whatexcerisedo ="yoga"
gymname="gym"
# breakfast --> actvity
# data --> symbol ( syntax) "" ,
#. reading data from others -->
#. tuple
breakfast= ("idly","chapti","sambar","chetani")
carrierbox=("snacks","food","sweet","tigfien")
# travel to offcie --> actvity
#data
fromstation="indiranagar"
tostation="mg road"
price=40
metro =[ [ 1,2,3 ], [1,2,3] , [1,2,3 ] ]
print(metro[0])
metro[0].append(4)
print(metro[0])
metro[2].append(7)
print(metro)
metro[0].remove(2)
print(metro)
# office space --> actvity
officecabs={ "dennis" : "sde2" , "laxman":"sde3 " }
print(officecabs)
officecabs["dennis"] = "sde3";
print(officecabs)
officecabs.update({"venkatesh":"sed3"})
print(officecabs)
# actual work --> actvity
company={"usa bank":[ {"dennis": ["ticket1","ticket2" ] }, { "venakt":"tocket4"},{"laxmi":"ticket5"} ] }
print (company["usa bank"])
print (company["usa bank"][1]["venakt"])
for i in company.values():
for j in i:
print("employyes \n",j)
# code reusablity is called function is called activity
def excerise():
whatexcerisedo ="yoga"
gymname="gym"
def officespace():
officecabs={ "dennis" : "sde2" , "laxman":"sde3 " }
print(officecabs)
officecabs["dennis"] = "sde3";
print(officecabs)
officecabs.update({"venkatesh":"sed3"})
print(officecabs)