Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check a string is palindrome or not in python

s = "001100"

if s == s[::-1]:
    print(s, "is a Palindrome string.")
else:
    print("Not a palindrome string.")

    
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #check #string #palindrome #python
ADD COMMENT
Topic
Name
2+7 =