Your question is Linked List or Palindrome Coding. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Catalina promotion systems can use short tokens whose characters must read identically from both directions. Given a token, determine whether it is a palindrome.
A string is a palindrome if it reads the same left to right and right to left. The comparison is case-sensitive, and every character is significant.
Implement is_palindrome(s), which accepts a string s and returns a boolean:
True if s is a palindrome.False otherwise.def is_palindrome(s):