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

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 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