human
Count of substrings consisting only of vowels | function to check vowel or not.
Function to Count all substrings in a string which contains only vowels.
if current character is vowel.
increment.
Count all possible substring of calculated length.
Reset the length.
Add remaining possible substrings consisting of vowels occupying last indices of the string.
Driver Program"
Solution in Python:

What is a code to count of substrings consisting only of vowels and the other steps required?
assistant
#Here is code to count of substrings consisting only of vowels and the other steps required.
 def isvowel ( ch ) :
	return ( ch in " aeiou " )
def CountTotal ( s ) :
	ans = 0
	n = len ( s )
	cnt = 0
	for i in range ( 0 , n ) :
		if ( isvowel ( s [ i ] ) ) :
			cnt += 1
		else :
			ans += ( cnt * ( cnt + 1 ) // 2 )
			cnt = 0
	if ( cnt != 0 ) :
		ans += ( cnt * ( cnt + 1 ) // 2 )
	return ans
s = " geeksforgeeks "
print ( CountTotal ( s ) )