Created
November 1, 2019 14:08
-
-
Save birk-astrup/2be893d2d519953b60a268aa6d1931c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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