Solution Exercise 65: python algorithm that test if the first character is equal to the last
Exercise 65 Write a Python algorithm which takes a string 's' as input and returns True if the first character is the same as the last character of the string…