Your question is Validate String Palindrome. 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.
At Grammarly, you need a utility function that checks whether a given string reads the same forward and backward. Write a function that returns True if the input string is a palindrome and False otherwise.
sTrue if s is identical when reversedFalse otherwiseA palindrome comparison in this problem is case-sensitive and includes all characters exactly as they appear.
def is_palindrome(s):