old_contents: #! python3
  # P5_readDocx.py - Accepts a filename of a .docx file and returns a single
  # string value of its text.
  #
  # Note:
  # - Example .docx files can be downloaded from http://nostarch.com/automatestuff/
  
  import docx
  
  
  def getText(filename):
      doc = docx.Document(filename)
      fullText = []
      for para in doc.paragraphs:
          fullText.append(para.text)
          #fullText.append(' ' + para.text)  # Alt: indent each paragraph
      return "\n".join(fullText)
      #return "\n\n".join(fullText)  # Alt: double space between paragraphs
  
new_contents: #! python3
  """Read docx
  
  Accepts a filename of a .docx file and returns a single string value of its text.
  
  Note:
      * Example .docx files can be downloaded from http://nostarch.com/automatestuff/
  """
  
  import docx
  
  
  def getText(filename: str) -> str:
      """Get text
  
      Gets text from a given .docx file.
  
      Args:
           filename: Path to .docx file to get text from.
  
      Returns:
          String with all document text.
      """
      doc = docx.Document(filename)
      fullText = []
      for para in doc.paragraphs:
          fullText.append(para.text)
          #fullText.append(' ' + para.text)  # Alt: indent each paragraph
      return "\n".join(fullText)
      #return "\n\n".join(fullText)  # Alt: double space between paragraphs
  
subject: Update P5_readDocx.py added docstrings