#NEWLINE# def _cons( self , word , i ) : #NEWLINE# #INDENT# 'cons(i) is TRUE <=> b[i] is a consonant.' #NEWLINE# if ( self [ i ] in self . vowels ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( word [ i ] == 'y' ) : #NEWLINE# #INDENT# if ( i == 0 ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( not self . _cons ( word , ( i - 1 ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return True