def palindrome(sentence): sentence2 = sentence[1::-1] new_sentence = sentence + sentence2 return print(new_sentence) sentence = input("文を入力してください。") palindrome(sentence)