human
Check whether the vowels in a string are in alphabetical order or not | Function that checks whether the vowel characters in a string are in alphabetical order or not.
ASCII Value 64 is less than all the alphabets so using it as a default value.
check if the vowels in the string are sorted or not.
if the vowel is smaller than the previous vowel.
store the vowel.
Driver code.
check whether the vowel characters in a string are in alphabetical order or not"
How can the above be solved in Python?
assistant
#Here is code to check whether the vowels in a string are in alphabetical order or not and the other steps required.
 def areVowelsInOrder ( s ) :
	n = len ( s )
	c = chr ( 64 )
	for i in range ( 0 , n ) :
		if ( s [ i ] == ' a ' or s [ i ] == ' e ' or s [ i ] == ' i ' or s [ i ] == ' o ' or s [ i ] == ' u ' ) :
			if s [ i ] < c :
				return False
			else :
				c = s [ i ]
	return True
if __name__ == " _ _ main _ _ " :
	s = " aabbbddeecc "
	if areVowelsInOrder ( s ) :
		print ( " Yes " )
	else :
		print ( " No " )