human
Print last character of each word in a string | Function to print the last character of each word in the given string.
Now , last word is also followed by a space.
If current character is a space.
Then previous character must be the last character of some word.
Driver code"
Solution in Python:

=====
What is a code to print last character of each word in a string and the other steps required?
assistant
#Here is code to print last character of each word in a string and the other steps required.
 def printLastChar ( string ) :
	string = string + " ▁ "
	for i in range ( len ( string ) ) :
		if string [ i ] == ' ▁ ' :
			print ( string [ i - 1 ] , end = " ▁ " )
string = " Geeks ▁ for ▁ Geeks "
printLastChar ( string )