Welcome to the Python screen.
The question is on your right: Validate Palindrome in User Input. Read through the requirements first.
Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?
In & General Intuition's mobile surfaces, lightweight input validation may need to detect whether a text string reads the same forward and backward. Write a function that returns whether a given string is a palindrome.
A palindrome is a string that is identical when reversed. For this problem, compare characters exactly as they appear: case, spaces, punctuation, and digits all matter.
sTrue if s is a palindromeFalse otherwisedef is_palindrome(s):