Write the code to find the palindrome using function

def is_palindrome(string):
return string == string[::-1]
#Example :
print(is_palindrome(“racecar”))
print(is_palindrome(“hello”))

@sriyaranipatro

The one you pastes will reverse the string.