human
Program to accept Strings starting with a Vowel | Function to check if first character is vowel.
Function to check.
Driver function"
Solution in Python:
 What is a code to program to accept Strings starting with a Vowel and the other steps required?
assistant
#Here is code to program to accept Strings starting with a Vowel and the other steps required.
 def checkIfStartsWithVowels ( string ) :
	if ( not ( string [ 0 ] == ' A ' or string [ 0 ] == ' a ' or string [ 0 ] == ' E ' or string [ 0 ] == ' e ' or string [ 0 ] == ' I ' or string [ 0 ] == ' i ' or string [ 0 ] == ' O ' or string [ 0 ] == ' o ' or string [ 0 ] == ' U ' or string [ 0 ] == ' u ' ) ) :
		return 1 ;
	else :
		return 0 ;
def check ( string ) :
	if ( checkIfStartsWithVowels ( string ) ) :
		print ( " Not ▁ Accepted " ) ;
	else :
		print ( " Accepted " ) ;
if __name__ == " _ _ main _ _ " :
	string = " animal " ;
	check ( string ) ;
	string = " zebra " ;
	check ( string ) ;