Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ex6():
- word = input("Please enter a single word: ")
- reverse_word = word[::-1]
- print(word, reverse_word)
- if word == reverse_word:
- print("{0} is palindrome.".format(word))
- else:
- print("{0} is not palindrome.".format(word))
Add Comment
Please, Sign In to add comment