¡@

Home 

python Programming Glossary: is_palindrome

python: recursive check to determine whether string is a palindrome

http://stackoverflow.com/questions/11496637/python-recursive-check-to-determine-whether-string-is-a-palindrome

string is a palindrome My task is to define a procedure is_palindrome that takes as input a string and returns a boolean indicating.. results. I appreciate the help. My code version 1 def is_palindrome s if s '' return True else if ord s 0 ord s len s 1 0 is_palindrome.. s if s '' return True else if ord s 0 ord s len s 1 0 is_palindrome s 1 len s 1 else return False print is_palindrome '' # True..