Here's another example of recursion:
def is_a_palindrome(t): # check to see if t is a palindrome if (len(t) >= 2): return (t[0] == t[-1]) and is_a_palindrome(t[1:-1]) else: # t is either a single character, or empty string return True _______________________________________________ Edu-sig mailing list Edu-sig@python.org http://mail.python.org/mailman/listinfo/edu-sig