Using the fork of data structure for the group of people that you created earlier for #5, clone your fork locally if you havent already (or create new fork and add the code from the example solution if your group hadn't managed to create a solution)
Create a new branch from your team-named branch with your name only
Add some code that makes use of comprehension expressions to your group.py file so that it prints out the following when the script is run:
the maximum age of people in the group
the average (mean) number of relations among members of the group
the maximum age of people in the group that have at least one relation
[more advanced] the maximum age of people in the group that have at least one friend
Create a pull request (PR) from your branch to the original repository.
Add a meaningful title to that PR and a link to this issue: Answers UCL-COMP0233-24-25/RSE-Classwork#7
Exercise in the same groups that #5:
Using the fork of data structure for the group of people that you created earlier for #5, clone your fork locally if you havent already (or create new fork and add the code from the example solution if your group hadn't managed to create a solution)
Create a new branch from your team-named branch with your name only
Add some code that makes use of comprehension expressions to your
group.py
file so that it prints out the following when the script is run:Create a pull request (PR) from your branch to the original repository. Add a meaningful title to that PR and a link to this issue:
Answers UCL-COMP0233-24-25/RSE-Classwork#7
Sample solution (with previously given sample data structure)