-
Notifications
You must be signed in to change notification settings - Fork 0
/
product3.py
61 lines (42 loc) · 2.66 KB
/
product3.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#OOPS
# Object oriented programming langauge
# Product ==> Process OOPS
#name= "Margherita" # protected
#size = "medium" # protected
#Crust = "new hand toosed" # private
# customer => Product
#phoneno = pno
#emailid = eid
#address = add
#rating =0
# Ramesh #suresh
pizza = [ "Margherita" , "medium" , "new hand toosed", "gardenparty","large","fry" ]
# previous class piZZA if we create any product object keerthi
pizza.append( "mexican" )
pizza.append("small")
pizza.append("flying")
# index : 0 ,...
# Ramya
prpizza= { "name ": "Margherita" , "size": "medium" , "Crust":"new hand toosed"}
# previous class piZZA if we create any product object keerthi
prpizza.update( { "name ": "Mexican" , "size": "small" , "Crust":"flying"} )
pp= { "name ": ["Margherita" ], "size": ["medium" ], "Crust":["new hand toosed"]}
pp["name "].append("Mexican")
pp["size"].append("small")
pp["Crust"].append("flying")
# variable : "name "
# Library
# Ramesh #suresh
customers= [ ["9900367097", "venkatesh.db@gmail.com","bangalore"], ["8900367097", "victory.db@gmail.com","malayasia"] ]
cust= { "phoneno":["9900367097"], "emailid": ["venkatesh.db@gmail.com"], "address":["bangalore"], "phoneno": ["8900367097"], "emailid":[ "victory.db@gmail.com"],"address":["malayasia"]}
cust["phoneno"].append("7900367099")
cust["emailid"].append("seeu@gmail.com")
# customer , Product
procus= [ { "name ": "Margherita" , "size": "medium" , "Crust":"new hand toosed", "phoneno":"9900367097", "emailid": "venkatesh.db@gmail.com", "address":"bangalore" } ,{ "name ": "tingtong" , "size": "very very big" , "Crust":"toosed", "phoneno":"8900367097", "emailid": "tenkatesh.db@gmail.com", "address":"thailand" } ]
procus.insert(0,{ "name ": "cornapizza" , "size": "medium" , "Crust":"new hand toosed", "phoneno":"9900367097", "emailid": "venkatesh.db@gmail.com", "address":"bangalore" } )
# Ramesh #suresh
piza = ( "Margherita" , "medium" , "new hand toosed", "gardenparty","large","fry" )
# previous class piZZA if we create any product object keerthi
custup= [ ("9900367097", "venkatesh.db@gmail.com","bangalore"), ("8900367097", "victory.db@gmail.com","malayasia") ]
# Product , customer stored in datastruture can stored in afile xl , csv
# customer has own choice what customer buys more DataAnalytic's