Home & Garden0 min ago
Python (Palindrome Checker)
4 Answers
http:// cscircl es.cemc .uwater loo.ca/ 13-list s/
On the Palindromes exercise, could some kind soul tell me how to get foolproof to return as false :D Not getting it right :/
On the Palindromes exercise, could some kind soul tell me how to get foolproof to return as false :D Not getting it right :/
Answers
I don't know what language this is Goodsy, but, in general terms.... I guess you could start by returning the length of the string. LEN [S] ? Then write a loop to compare S[0] with S[length-1] Then compare S[1] with S[length-2] etc etc If all are equal, then return TRUE.
17:59 Sat 22nd Jun 2013
-- answer removed --
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.