<doocs>1704.Determine if String Halves Are Alike_1.py
def halvesAreAlike( s: str) -> bool:
    half = len(s) >> 1
    vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
    s1 = sum(1 for c in s[:half] if c in vowels)
    s2 = sum(1 for c in s[half:] if c in vowels)
    return s1 == s2
def sample_funcname ( var_0 : str ) -> bool :
    var_5 = len ( var_0 ) >> 1
    var_16 = { 'a' , 'e' , 'i' , 'o' , 'u' , 'A' , 'E' , 'I' , 'O' , 'U' }
    var_19 = sum ( 1 for var_18 in var_0 [ : var_5 ] if var_18 in var_16 )
    var_20 = sum ( 1 for var_18 in var_0 [ var_5 : ] if var_18 in var_16 )
    return var_19 == var_20
