Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

palindrome python

1
2
3
4
5
string=input(("Enter a string:"))
if(string==string[::-1]):
      print("The string is a palindrome")
else:
      print("Not a palindrome")
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #palindrome #python
ADD COMMENT
Topic
Name
6+2 =