Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Answers to home work for week 3. #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Answers to home work for week 3. #39

wants to merge 2 commits into from

Conversation

goldsmdn
Copy link

New code for queries. Three new lines. See issue UCL-RITS/rse-classwork-2020#10

@goldsmdn
Copy link
Author

New pull request. Linked to issue UCL-RITS/rse-classwork-2020#10

@goldsmdn goldsmdn changed the title Daniel Answers to home work for week 3. Oct 22, 2020
Comment on lines +33 to +35
print(max([data["age"] for people, data in friends.items()]))
print(len([data["relation"] for people, data in friends.items()])/sum([len(relatives) for relatives in [data["relation"] for people, data in friends.items()]]))
print(max([data["age"] for people, data in friends.items()if len(data["relation"]) > 1]))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants