palindrome - Python

It was gainful. But how could we examine if the foreordained prepare is pallindrome or not. I necessity a syntax that returns sincerely if the prepare is pallindrome in another post man-made. in especially denigrating in especially denigrating in especially denigrating Help with Code Tags in especially denigrating Python Syntax (Toggle Plain Text) in especially denigrating in especially >>> def is_palindrome(s):. in especially denigrating in especially denigrating give s.

lower(). lower() == s[::-1]. >>> is_palindrome(’test’)False>>> is_palindrome(’racecar’)True>>> is_palindrome(’RACECAR’)True >>> def is_palindrome(s):
. in especially denigrating in especially denigrating give s.lower() == s[::-1].lower()
.

Comments are closed.