Hello, I need to ask a question of what code can help me detect if a string is a multiple word palindrome or not

前端 未结 0 708
攒了一身酷
攒了一身酷 2020-12-13 10:21

word = input(\'Enter your string:\') rev_word = reversed(word)

if list(word) == list(rev_word): print("The string is a palindrome.") else: print("The s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题