Skip to content

Create a function where an owner can take a specific cat to the vet #19

Description

@nickmckay

Write a function called vet_visit(Cat) to take the cat specified by the "Cat" parameter to the vet. When the cat visits the vet eats its mood parameter decreases by 1 and its health parameter increases by 1.

  • Write the vet_visit() function in the Owner class in human.py.
  • Edit the docstrings for this function, including usage a example.
  • Create a test for the new function.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions