-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorders.py
More file actions
61 lines (59 loc) · 1.17 KB
/
Copy pathorders.py
File metadata and controls
61 lines (59 loc) · 1.17 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
"""
Sample order and customer data for demos.
"""
orders = {
"O1": {
"id": "O1",
"product": "Laptop",
"quantity": 1,
"price": 1200,
"status": "shipped",
"customer_id": "C1"
},
"O2": {
"id": "O2",
"product": "Mouse",
"quantity": 2,
"price": 25,
"status": "delivered",
"customer_id": "C1"
},
"O3": {
"id": "O3",
"product": "Keyboard",
"quantity": 1,
"price": 75,
"status": "processing",
"customer_id": "C2"
},
"O4": {
"id": "O4",
"product": "Monitor",
"quantity": 2,
"price": 300,
"status": "shipped",
"customer_id": "C2"
}
}
customers = {
"C1": {
"id": "C1",
"name": "John Doe",
"email": "john@example.com",
"phone": "555-0123",
"orders": [
orders["O1"],
orders["O2"]
]
},
"C2": {
"id": "C2",
"name": "Jane Smith",
"email": "jane@example.com",
"phone": "555-0456",
"orders": [
orders["O3"],
orders["O4"]
]
}
}