Skip to content

Instantly share code, notes, and snippets.

@birk-astrup
Created November 1, 2019 14:08
Show Gist options
  • Save birk-astrup/2be893d2d519953b60a268aa6d1931c3 to your computer and use it in GitHub Desktop.
Save birk-astrup/2be893d2d519953b60a268aa6d1931c3 to your computer and use it in GitHub Desktop.
def resolve_residents_in_building(building, info):
print(building)
with open('./data/residents.json') as file:
data = json.load(file)
residents = [
resident
for resident
in data['residents']
if resident['building']
== building['id']]
return residents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment