human
Print longest palindrome word in a sentence | Function to check if a word is palindrome.
making the check case case insensitive.
loop to check palindrome.
Function to find longest palindrome word.
to check last word for palindrome.
to store each word.
extracting each word.
Driver code"
Solution in Python:

=====
Can you provide a code to print longest palindrome word in a sentence and the other steps required?
assistant
#Here is code to print longest palindrome word in a sentence and the other steps required.
 def checkPalin ( word ) :
	n = len ( word )
	word = word . lower ( )
	for i in range ( n ) :
		if ( word [ i ] != word [ n - 1 ] ) :
			return False
		n -= 1
	return True
def longestPalin ( str ) :
	str = str + " ▁ "
	longestword = " "
	word = " "
	length1 = 0
	for i in range ( len ( str ) ) :
		ch = str [ i ]
		if ( ch != ' ▁ ' ) :
			word = word + ch
		else :
			length = len ( word )
			if ( checkPalin ( word ) and length > length1 ) :
				length1 = length
				longestword = word
			word = " "
	return longestword
if __name__ == " _ _ main _ _ " :
	s = " My ▁ name ▁ is ▁ ava ▁ and ▁ i ▁ love ▁ Geeksforgeeks "
	if ( longestPalin ( s ) == " " ) :
		print ( " No ▁ Palindrome ▁ Word " )
	else :
		print ( longestPalin ( s ) )