Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Palindrome
SUBMITTED BY:
Guest
DATE:
Sept. 13, 2014, 3:55 a.m.
FORMAT:
Python
SIZE:
322 Bytes
Raw
Download
Tweet
HITS:
900
Go to comments
Report
print
"Check if a word is Palindrome"
print
"============================="
word
=
raw_input
(
"Enter Word : "
)
new
=
''
.
join
(
word
[
-
i
]
for
i
in
range
(
1
,
len
(
word
)
+
1
))
if
new
==
word
:
print
"The Word
%s
is Palindrome"
%
word
else
:
print
"The Word
%s
is not Palindrome"
%
word
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus