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

Adding Answers to Exercise 10 #55

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

Adding Answers to Exercise 10 #55

wants to merge 4 commits into from

Conversation

umitozmen
Copy link

@umitozmen
Copy link
Author

Added codes to Answer 11

Comment on lines +38 to +42
ages =[my_group[key]['age'] for key in my_group.keys()]
relations =[my_group[key]['relations'] for key in my_group.keys()]
ttl_rel_len = sum([len(each.keys()) for each in relations])
ages_with_rel =[my_group[key]['age'] for key in my_group.keys() if my_group[key]['relations']]
ages_with_fri =[my_group[key]['age'] for key in my_group.keys() if 'friend' in my_group[key]['relations'].values()]
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.

2 participants