human
What is a code to length Of Last Word in a String and the other steps required given the following:
Length Of Last Word in a String | Python3 program for implementation of efficient approach to find length of last word.
Split by space and converting String to list and.
Driver code"
Solution in Python:
assistant
#Here is code to length Of Last Word in a String and the other steps required.
 def length ( str ) :
	lis = list ( str . split ( " ▁ " ) )
	return len ( lis [ - 1 ] )
str = " Geeks ▁ for ▁ Geeks "
print ( " The ▁ length ▁ of ▁ last ▁ word ▁ is " , length ( str ) )