<doocs>0929.Unique Email Addresses_1.py
def numUniqueEmails( emails: List[str]) -> int:
    s = set()
    for email in emails:
        local, domain = email.split('@')
        local = local.replace('.', '')
        if (i := local.find('+')) != -1:
            local = local[:i]
        s.add(local + '@' + domain)
    return len(s)
def sample_funcname ( var_0 : List [ str ] ) -> int :
    var_5 = set ( )
    for var_6 in var_0 :
        var_8 , var_10 = var_6.split ( '@' )
        var_8 = var_8.replace ( '.' , '' )
        if ( var_14 := var_8.find ( '+' ) ) != - 1 :
            var_8 = var_8 [ : var_14 ]
        var_5.add ( var_8 + '@' + var_10 )
    return len ( var_5 )
