code: def snakecase(string):
      
  
      string = re.sub(r"[\-\.\s]", '_', str(string))
      if not string:
          return string
      return lowercase(string[0]) + re.sub(r"[A-Z]", lambda matched: '_' + lowercase(matched.group(0)), string[1:])
docs: Convert string into snake case.
      Join punctuation with underscore
  
      Args:
          string: String to convert.
  
      Returns:
          string: Snake cased string.