code: def number_text_lines(text):
      r
      numbered_linelist = [
          ''.join((('%2d' % (count + 1)), ' >>> ', line))
          for count, line in enumerate(text.splitlines())
      ]
      text_with_lineno = '\n'.join(numbered_linelist)
      return text_with_lineno
docs: r"""
      Args:
          text (str):
  
      Returns:
          str: text_with_lineno - string with numbered lines