Your question is Simple Program: 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.
Speridian Technologies' customer portal receives short identifiers that must be checked for symmetry. Write a function that determines whether a string is a palindrome, meaning it reads exactly the same from left to right and right to left.
The comparison is case-sensitive, and every character is significant. Do not remove spaces, punctuation, or other characters. An empty string is considered a palindrome.
Implement is_palindrome(s), where s is a string. Return True if s is a palindrome; otherwise, return False.
def is_palindrome(s):