Skip to content

Instantly share code, notes, and snippets.

View dereknheiley's full-sized avatar

Derek Nheiley dereknheiley

View GitHub Profile
def isPalindrome(input_string):
def _string_iterator():
_len = len(input_string)
for i in xrange(_len / 2):
yield input_string[i], input_string[_len - i - 1]
for c1, c2 in _string_iterator():
if c1 != c2: