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)

24th Dec 2016, 9:18 AM
Yasha
1 Antwort
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 ?
29th Aug 2019, 11:40 PM
Firefnix
Firefnix - avatar