hey guys am trying to write a code to check if words are palindrone or not basically words like madam,level,radar,racecar..etc words dat have same meaning wen read backwards...my function kinda works by checking the last character with first, the second last character with de second until all characters are checked..bt am getting am getting "is palidrone" for every check that is correct and every incorrect check "is not palidrone" repeated...please help
That still isn't quite right. You always return after comparing the first and last characters. If the characters are NOT equal, then you can return false. Otherwise you have to continue comparing. Only if you make all the way through the string can you return true, so put the "return true" after the loop.