This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
master
RosettaCodeData
/
Task
/
Palindrome-detection
/
Python
/
palindrome-detection-4.py
3 lines
87 B
Python
Raw
Permalink
Normal View
History
Unescape
Escape
September Morn Update
2019-09-12 10:33:56 -07:00
def
is_palindrome_r2
(
s
)
:
return
not
s
or
s
[
0
]
==
s
[
-
1
]
and
is_palindrome_r2
(
s
[
1
:
-
1
]
)
Reference in a new issue
Copy permalink