#P111. TENET

TENET

題目描述

判斷句子是否「回文」句子

輸入格式

一行字符串

輸出格式

True or False

Samples

["TENET","TENED","DENED","DENEDD"]
["True","False","True","False"]

提示

You can simply read the input() as string (no "integer conversion" is needed this time) and then verify the digit (from both directions, left and right). Note that you may need to handle the "negative" symbol by yourself.

>> thislist = ["apple", "banana", "cherry"]
>> print(thislist[::-1])

原始資料

  • Zero1 題號:a111
  • Hydro 題號:Z0111
  • Locale:zh_TW
  • Display:open