Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = list(input())
- isPalindrome = True
- i=1
- while i <= int(len(A)/2):
- if len(A)%2 == 0:
- if A[i-1] != A[len(A)-i]:
- isPalindrome = False
- break
- else:
- if A[i-1] != A[len(A)-i]:
- isPalindrome = False
- break
- i += 1
- if isPalindrome:
- print('Yes')
- else:
- print('No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement