Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = input('Write a word: ')
- s = string[::-1]
- if string == s:
- print('This word is palindrome!')
- else:
- print('This word is not palindrome')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement