programe for pallindromne plz....plz plzplz......fast really needed
Answers
Answered by
1
#Program to check whether a string is a pallindrome or not
string=raw_input("Enter a String:")
string2=string.lower()
#converting all characters into lowercase
if string2==string2[::-1]:
#comparing string with reverse of it
print string,"is a pallindrome"
else:
print string,"is not a pallndrome"
string=raw_input("Enter a String:")
string2=string.lower()
#converting all characters into lowercase
if string2==string2[::-1]:
#comparing string with reverse of it
print string,"is a pallindrome"
else:
print string,"is not a pallndrome"
Answered by
0
Program to check whether a string is a pallindrome or not
string=raw_input("Enter a String:")
string2=string.lower()
#converting all characters into lowercase
if string2==string2[::-1]:
#comparing string with reverse of it
print string,"is a pallindrome"
else:
print string,"is not a pallndrome"
string=raw_input("Enter a String:")
string2=string.lower()
#converting all characters into lowercase
if string2==string2[::-1]:
#comparing string with reverse of it
print string,"is a pallindrome"
else:
print string,"is not a pallndrome"
Similar questions