Your question is Palindrome String 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.
A CACI mission-data component needs to validate whether an input string reads identically from left to right and right to left. Write a function that returns True when the string is a palindrome and False otherwise.
Implement is_palindrome(s), where s is a string. Compare characters exactly as provided: the check is case-sensitive, and spaces, punctuation, and digits are significant. Return a Boolean value.
def is_palindrome(s):