code: def split(string, separator_regexp=None, maxsplit=0):
      
      if not string:
          return []
      if separator_regexp is None:
          separator_regexp = _default_separator()
      if not separator_regexp:
          return string.split()
      return re.split(separator_regexp, string, maxsplit)
docs: Split a string to a list
  
      >>> split('fred, was, here')
      ['fred', ' was', ' here']