は、あなたがものを作る、回文のためではありません確認したいです。
あり、あなたのコードで多くの問題がありますが、要するに、それは
word = input()
if word == "".join(reversed(word)):
print("Palidrome")
のはあまり意味がありませんあなたのコード、についてお話しましょうまで低減することができます。
fno = input()
myList = list(fno) #fno will be a string, which is already a sequence, there is no need to make a list.
sum = 0 #This goes unused. What is it for?
for i in range(len(fno)): #You should never loop over a range of a length, just loop over the object itself.
if myList[0:] == myList[:0]: #This checks if the slice from beginning to the end is equal to the slice from the beginning to the beginning (nothing) - this will only be true for an empty string.
continue #And then it does nothing anyway. (I am presuming this was meant to be indented)
print (myList) #This will print the list of the characters from the string.
[回文ためのPythonリバース()](http://stackoverflow.com/questions/5202533/python-reverse-for-palindromes) – jamylak
の可能複製あなたが作る」で、正確にはどういう意味ですか数字回文 '?あなたが取り入れたり出てくることを期待するものの例を挙げてください。 –
あなたの例はあまり明確にはなりません。あなたは 'make'と言っていますが、それが回文かどうかを調べる*ように見えるようです。あなたの例のようにチェックしているのであれば、私の答えが働きます。 –