Skip to content

TASK: Add friendship system to the Person #139

Description

@TheGittyPerson

Leave a comment if you want to work on this task!

Difficulty: Lower Intermediate

TODO:

  • Add an attribute friends of type list[Person] to the Person class in person.py.
  • Add methods like add_friend(friend: Person), remove_friend(friend: Person | str)
    • Add type checks for both methods
    • If a string is passed to remove_friend(), it should look for the Person by its name attribute.
    • remove_friend() should check if the given Person or name is in the list.
    • Add more of your own methods
  • Remember to add type hints and docstrings where necessary and follow PEP 8

PR steps:

  1. Fork this repo
  2. Clone the forked repo
  3. Create a new branch and name it feature/friendship-system
  4. Push commits to your remote fork
  5. Create a PR titled TASK: Add friendship system to the `Person` (#139)
  6. At the end of the PR description, add Closes #139
  7. Submit the PR (Ensure you allow maintainers to edit)

Please make sure you have read the Contributing Guidelines before working.


Feel free to ask any questions here!

If you are interested in working on this task,
please leave a comment requesting assignment to explicitly let others know the task is taken and prevent duplicate PRs.

Metadata

Metadata

Assignees

Labels

featureNew feature or enhancementgood first issueGood for newcomershelp wantedExtra attention is neededtaskThis is a task issue / PR completing a task🐜 Lower IntermediateGood for growing devs with some confidence in programming

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions