To handle lower case
ch = ch . upper ( ) NEW_LINE return not ( ch == ' A ' or ch == ' E ' or ch == ' I ' or ch == ' O ' or ch == ' U ' ) and ord ( ch ) >= 65 and ord ( ch ) <= 90 NEW_LINE def totalConsonants ( string ) : NEW_LINE count = 0 NEW_LINE for i in range ( len ( string ) ) : NEW_LINE