Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check palindrome in python

string = input("Type a string: ")
if string[::-1] == string: 
	print(string,"This string is Palindrome")
else:
	print(string,"This string is not Palindrome")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #check #palindrome #python
ADD COMMENT
Topic
Name
4+1 =