Skip to content

Instantly share code, notes, and snippets.

@ageorgou
Last active April 27, 2024 14:41
Show Gist options
  • Save ageorgou/7cdb4622d8ec53271de2620e936fd692 to your computer and use it in GitHub Desktop.
Save ageorgou/7cdb4622d8ec53271de2620e936fd692 to your computer and use it in GitHub Desktop.
A sample solution for representing the group of acquaintances (not the only solution!)
group = {
"Jill": {
"age": 26,
"job": "biologist",
"relations": {
"Zalika": "friend",
"John": "partner"
}
},
"Zalika": {
"age": 28,
"job": "artist",
"relations": {
"Jill": "friend"
}
},
"John": {
"age": 27,
"job": "writer",
"relations": {
"Jill": "partner"
}
},
"Nash": {
"age": 34,
"job": "chef",
"relations": {
"John": "cousin",
"Zalika": "landlord"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment