0

Palindrome program using python

26th Oct 2017, 10:11 AM
shreya bhatia
shreya bhatia - avatar
4 Respostas
+ 8
print(input()[::-1])
26th Oct 2017, 11:51 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 8
Sure, why would I give away all the logic right away... ;)
26th Oct 2017, 5:54 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
- 1
## one liner print(*[a+" is palindrome" for a in [input()] if a== a[::-1]]) @@ kuba u gave code for reverse
26th Oct 2017, 4:26 PM
sayan chandra
sayan chandra - avatar
- 1
☺☺ ohhoo thats nice of u... ✌ ✌ appologies and try my new challenge and get refreshed... https://www.sololearn.com/discuss/817002/?ref=app
26th Oct 2017, 5:55 PM
sayan chandra
sayan chandra - avatar