Advertisement
T-D-K

Untitled

May 24th, 2018
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. s = input()
  2. l = len(s)
  3. for i in range(l // 2):
  4.     if s[i]!=s[l - 1 - i]:
  5.         print("no")
  6.         break
  7. else:
  8.     print("yes")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement