Skip to content

TASK: Add simple memory system to the Person #137

Description

@TheGittyPerson

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

Difficulty: Upper Beginner to Lower Intermediate

TODO:

  • Add the remember() method to the Person class in person.py.
  • The method should store a string in a protected instance variable (_memory).
  • Add another method, recall() that returns _memory.
  • This method should also have a parameter say of type bool that defaults to False. If this is set to true, the method must first say() the memory before returning.
  • Also add a forget() method.
  • 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 feat/memory-system
  4. Push commits to your remote fork
  5. Create a PR titled TASK: Add simple memory system to the `Person` (#137)
  6. At the end of the PR description, add Closes #137
  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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or enhancementgood first issueGood for newcomershelp wantedExtra attention is neededtaskThis is a task issue / PR completing a task🐛 Upper BeginnerGood for more experienced beginners🐜 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