Advertisement
Vikis

pal.py

Nov 12th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/python3
  2. s = input()
  3.  
  4. l = len(s)
  5.  
  6. for i in range(l//2):
  7. if s[i] != s[-1-i]:
  8. print("It's not palindrome")
  9. quit()
  10.  
  11. print("It's palindrome")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement