Your question is Valid Palindrome and String Reverse. 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.
Antra's coding evaluation utility needs to identify whether an input string is a palindrome. Given a string s, return True if it reads the same from left to right and right to left, otherwise return False.
The comparison is exact: preserve character case, whitespace, punctuation, and all other characters. An empty string and a single-character string are palindromes.
s, a string containing zero or more characters.True when s equals its reverse, and False otherwise.def is_valid_palindrome(s):