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

added statistics readout#63

Open
harrybooth wants to merge 1 commit intoUCL-RITS:mainfrom
harrybooth:harry
Open

added statistics readout#63
harrybooth wants to merge 1 commit intoUCL-RITS:mainfrom
harrybooth:harry

Conversation

@harrybooth
Copy link

Hi

Answers for

Comment on lines +45 to +51
a = [len(value['relations']) for value in my_group.values()]

print("Average no of relations: " + str(sum(a)/len(a)))

b = [value['age'] for value in my_group.values() if len(value['relations']) >= 1]

print("Max age of people with >= 1 relation: " + str(max(b))) No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

good start. more meaningful variable names here would probably help!

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.

2 participants