UCL-COMP0233-24-25 / RSE-Classwork

6 stars 86 forks source link

Summary data from group #7

Open dpshelio opened 1 month ago

dpshelio commented 1 month ago

Exercise in the same groups that #5:

  1. 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)

  2. Create a new branch from your team-named branch with your name only

  3. 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
  4. 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)