Traverse the string from starting and check if each character is alphabet then increment total_len
while ( i < len1 ) : NEW_LINE INDENT if ( s [ i ] . isalpha ( ) ) : NEW_LINE INDENT total_len += 1 NEW_LINE DEDENT DEDENT