human
First uppercase letter in a string ( Iterative and Recursive ) | Function to find string which has first character of each word ..
Driver code"
How can the above be solved in Python?
 ... Give me a code to first uppercase letter in a string ( Iterative and Recursive ) and the other steps required?
assistant
#Here is code to first uppercase letter in a string ( Iterative and Recursive ) and the other steps required.
 def first ( str ) :
	for i in range ( 0 , len ( str ) ) :
		if ( str [ i ] . istitle ( ) ) :
			return str [ i ]
	return 0
str = " geeksforGeeKS "
res = first ( str )
if ( res == 0 ) :
	print ( " No ▁ uppercase ▁ letter " )
else :
	print ( res )