-
Notifications
You must be signed in to change notification settings - Fork 0
/
question4.py
44 lines (40 loc) · 950 Bytes
/
question4.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
# (c) 2021 - 2023 Open Risk (https://www.openriskmanagement.com)
obligor = {
"id": 1,
"name": "Genericom",
"incorporation date": '1915-05-07',
"previous names": ["Genco", "General Corp", "Gen Brothers"],
"statements": ''
}
portfolio = {
"metadata": {
"as of date": '2015-05-07',
},
"obligor1": {
"id": 1,
"name": "Genericom",
"incorporation date": '1915-05-07',
},
"obligor2": {
"id": 2,
"name": "ExpoCo",
"incorporation date": '1815-05-07',
}
}
obligor1 = {
"id": 1,
"name": "Genericom",
"incorporation date": '1915-05-07',
"previous names": ["Genco", "General Corp", "Gen Brothers"],
"statements": ''
}
obligor2 = {
"id": 2,
"name": "ExpoCo",
"incorporation date": '1815-05-07',
"previous names": [],
"statements": 'Missing'
}
portfolio2 = [obligor1, obligor2]
# >> > portfolio2[1]['name']
# 'Genericom'