Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 28th, 2017
58
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.25 KB
| None
|
0
0
raw
download
clone
embed
print
report
def ispalin(s):
i,j=0,len(s)-1
while i<j:
if s[i] is not letter:
i+=1
continue
if s[j] is not letter:
j-=1
continue
if s[i]!=s[j]:
return False
i+=1
j-=1
return True
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
23 min ago | 18.73 KB
OoT rando seed 4/27
42 min ago | 69.81 KB
Untitled
1 hour ago | 6.88 KB
Untitled
2 hours ago | 22.45 KB
Untitled
3 hours ago | 7.32 KB
Untitled
4 hours ago | 21.24 KB
Untitled
5 hours ago | 5.98 KB
Untitled
6 hours ago | 19.42 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!