判斷句子是否「回文」句子
一行字符串
True or False
TENET
True
TENED
False
DENED
True
DENEDD
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])
ID | User | Problem | Subject | Hit | Post Date |
沒有發現任何「解題報告」 |