Files
  • main.py
main.py
1
2
3
4
5
word = input("Please enter a word or phrase: ")
if word.lower() == word[::-1].lower():
  print("That is a palindrome.")
else:
  print("That is not a palindrome.")
Python 3.6.1 (default, Dec 2015, 13:05:11) [GCC 4.8.2] on linux