Document changes visible to the caller

A notification function receives an ordinary Python list of strings named tags and a string named tag. The current docstring omits details that callers need. Which statements accurately describe the shown function? Select all that apply.


Python
def add_tag(tags, tag):
    """Return an updated list of tags."""
    tags.append(tag)
    return tags
Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Program Readability, Organization, and Documentation Questions: