1import re 2 3 4def snake_case(s: str) -> str: 5 return re.sub(r"(?<!^)(?=[A-Z])", "_", s).lower()
5def snake_case(s: str) -> str: 6 return re.sub(r"(?<!^)(?=[A-Z])", "_", s).lower()