📜  python palindrome - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.033000             🧑  作者: Mango

代码示例6
mes=input("Enter the word and see if it is palindrome ")
if mes==mes[::-1]:
    print("This word is palindrome")
else:
    print("This word is not palindrome")