Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ isPalindrome
Function
isPalindrome
Python/palindrome.py:3–4 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
1
# function which return reverse of a string
2
3
def
isPalindrome(s):
4
return
s == s[::-1]
5
6
7
# Driver code
Callers
1
palindrome.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected