forked from UCL-COMP0233-2023-2024/friend-group
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroup.py
28 lines (26 loc) · 893 Bytes
/
group.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
"""An example of how to represent a group of acquaintances in Python."""
# Your code to go here...
my_group = {'Jill': {
'job': 'Biologist',
'age': '26',
'connections': {
'Zalika': 'friend',
'John': 'partner'}},
'Zalika': {
'job': 'Artist',
'age': '28',
'connections': {
'Jill': 'friend',
'Nash': 'landlord'}},
'John': {
'job': 'Writer',
'age': '27',
'connections': {
'Jill': 'partner',
'Nash': 'cousin'}},
'Nash': {
'job': 'chef',
'age': '34',
'connections': {
'John': 'cousin',
'Zalika': 'landlord'}}}