is_palindrome() doctest

Work in Progress!

Complete the is_palindrome() function started below, and write the doctest so it satisfies all the conditions specified in the right side of this screenshot.

(click to enlarge)

Code needed to do doctest:

if __name__ == '__main__': import doctest print (doctest.testmod())
Comments