human
Can you provide a code to gOOGLE cASE of a given sentence and the other steps required given the following:
gOOGLE cASE of a given sentence | Python3 program to convert a sentence to gOOGLE cASE ..
empty strings.
convert input string to upper case.
checki if character is not a space and adding it to string w.
converting first character to lower case and subsequent initial letter of another word to lower case.
Driver code"
Solution in Python:
assistant
#Here is code to gOOGLE cASE of a given sentence and the other steps required.
 def convert ( str ) :
	w = " "
	z = " " ;
	str = str . upper ( ) + " ▁ " ;
	for i in range ( len ( str ) ) :
		ch = str [ i ] ;
		if ( ch != ' ▁ ' ) :
			w = w + ch ;
		else :
			z = ( z + ( w [ 0 ] ) . lower ( ) + w [ 1 : len ( w ) ] + " ▁ " ) ;
			w = " " ;
	return z ;
if __name__ == ' _ _ main _ _ ' :
	str = " I ▁ got ▁ intern ▁ at ▁ geeksforgeeks " ;
	print ( convert ( str ) ) ;