Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Palindrome Check using for loop in python

p = list(input())
for i in range(len(p)):
    if p[i] == p[len(p)-1-i]:
        continue
    else:
         print("NOT PALINDROME")
         break
else:
    print("PALINDROME")
Source by www.vpropel.in #
 
PREVIOUS NEXT
Tagged: #Palindrome #Check #loop #python
ADD COMMENT
Topic
Name
4+3 =