Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. string = input('Write a word: ')
  2. s = string[::-1]
  3. if string == s:
  4. print('This word is palindrome!')
  5.  
  6. else:
  7. print('This word is not palindrome')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement