« first day (55 days earlier)      last day (3311 days later) » 

9:15 AM
def cartesian_product_recursive(tup_1, tup_2):
    """Returns a tuple that is the cartesian product of tup_1 and tup_2

	>>> X = (1, 2)
	>>> Y = (4, 5)
	>>> cartesian_product(X, Y)
	((1, 4), (4, 1), (1, 5), (5, 1), (2, 4), (4, 2), (2, 5), (5, 2))
    """
    length1 = len(tup_1)
    length2 = len(tup_2)
    def product(tup_1, tup_2, index1, index2):
        if index1 == length1:
            return None
        elif index2 == length2:
            return product(tup_1, tup_2, index1 + 1, 0)
        else:
 
1 message moved from Python
 

« first day (55 days earlier)      last day (3311 days later) »