Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added statistics readout #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

added statistics readout #63

wants to merge 1 commit into from

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)))
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants