Challenge: palindrome string😈😓 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Challenge: palindrome string😈😓

Write a program to determine if a string is a palindrome. User will input the string in the Command line. palindrome : a word, phrase, or sequence that reads the same backwards as forwards. e.g- madam,nurses run,etc. Enjoy😃😉

26th Dec 2017, 2:50 AM
SAB
SAB - avatar
10 Answers
4th Mar 2018, 7:03 PM
MeanMachine
MeanMachine - avatar
+ 13
https://code.sololearn.com/WYd5Bgyl31K4/?ref=app https://code.sololearn.com/cVYt1TBBOX8u/?ref=app
26th Dec 2017, 9:44 AM
LukArToDo
LukArToDo - avatar
+ 13
https://code.sololearn.com/cBB42CSLuFkC/?ref=app
4th Jan 2018, 1:45 PM
Raphael Williams
Raphael Williams - avatar
+ 10
https://code.sololearn.com/cU4zbs3M09gn/?ref=app
26th Dec 2017, 10:41 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
12th Mar 2018, 4:56 AM
abhijeet
abhijeet - avatar
+ 5
Pythonic solution: x = input() print("Palindrome!" if x == x[::-1] else "Not palindrome...")
26th Dec 2017, 4:41 AM
LunarCoffee
LunarCoffee - avatar
+ 3
Java Code here: Step1: Input a string. Step2: Convert the String to a StringBuilder object because StringBuilder class has reverse function that can reverse a string. Step3: Convert the StringBuilder object back to String data type. Step4. Compare the inout String with the converted String. https://code.sololearn.com/cHMKM8Eh1xXI/?ref=app
26th Dec 2017, 1:34 PM
Viraj Singh
Viraj Singh - avatar
26th Dec 2017, 6:46 AM
H Chiang