To count total number of consonants from 0 to n - 1
def totalConsonants ( string , n ) : NEW_LINE INDENT if n == 1 : NEW_LINE INDENT return isConsonant ( string [ 0 ] ) NEW_LINE DEDENT return totalConsonants ( string , n - 1 ) + isConsonant ( string [ n - 1 ] ) NEW_LINE DEDENT