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

Data structures and comprehension expressions #10

Open
stefpiatek opened this issue Oct 22, 2020 · 0 comments
Open

Data structures and comprehension expressions #10

stefpiatek opened this issue Oct 22, 2020 · 0 comments
Labels

Comments

@stefpiatek
Copy link
Collaborator

stefpiatek commented Oct 22, 2020

Exercise done alone:

  1. Using the fork of data structure for the group of people that you created earlier for #️⃣8️⃣, 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-RITS/rse-classwork-2020#10

Sample solution (with previously given sample data structure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant