human
Write me a code to reverse individual words and the other steps required given the following:
Reverse individual words | reverses individual words of a string.
Traverse given string and push all characters to stack until we see a space ..
When we see a space , we print contents of stack ..
Since there may not be space after last word ..
Driver Code"
Solution in Python:
assistant
#Here is code to reverse individual words and the other steps required.
 def reverserWords ( string ) :
	st = list ( )
	for i in range ( len ( string ) ) :
		if string [ i ] != " ▁ " :
			st . append ( string [ i ] )
		else :
			while len ( st ) > 0 :
				print ( st [ - 1 ] , end = " " )
				st . pop ( )
			print ( end = " ▁ " )
	while len ( st ) > 0 :
		print ( st [ - 1 ] , end = " " )
		st . pop ( )
if __name__ == " _ _ main _ _ " :
	string = " Geeks ▁ for ▁ Geeks "
	reverserWords ( string )