0
Can we use string buffer object in a loop
Im trying to create a program which takes out each and everyword and checks whether its a palindrome word or not (ps trying to reverse the word using reverse() function)
1 Resposta
0
In Python ?
#Python 3
a,l=input("Input : "),list()
for i in a.split(" "):
if reverse(i)==i:l.append(i)
print(l)# l is the list of all the palindromes
Is it what you want to do ?