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

Summary data from group #7

Open
dpshelio opened this issue Oct 14, 2024 · 0 comments
Open

Summary data from group #7

dpshelio opened this issue Oct 14, 2024 · 0 comments
Labels
week03 Python and its data structures

Comments

@dpshelio
Copy link
Contributor

dpshelio commented Oct 14, 2024

Exercise in the same groups that #5:

  1. Using the fork of data structure for the group of people that you created earlier for Friend group data model #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)

@dpshelio dpshelio added the week03 Python and its data structures label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
week03 Python and its data structures
Projects
None yet
Development

No branches or pull requests

1 participant