(name: str)
return sanitized
Replace non-alphanumeric characters and leading zero with `_`.

    Args:
        name (str): proposed name

    Returns:
        name (str): new name
Replace non-alphanumeric characters and leading zero with `_`.
Replace non - alphanumeric characters and leading zero with _ .
def sanitized_name(name: str) -> str:
    """
    Replace non-alphanumeric characters and leading zero with `_`.

    Args:
        name (str): proposed name

    Returns:
        name (str): new name
    """
    sanitized = re.sub(r"\W", "_", name)
    if sanitized[0].isdigit():
        sanitized = "_" + sanitized
    return sanitized
def sanitized_name ( name : str ) -> str : sanitized = re . sub ( r"\W" , "_" , name ) if sanitized [ 0 ] . isdigit ( ) : sanitized = "_" + sanitized return sanitized