CartesianProduct.__contains__

CartesianProduct.__contains__(other)[source]

Return other in self.

Parameters

other :

Object to be tested for membership

Returns

containsbool

True if other is a sequence with same length as this Cartesian product, and each entry is contained in the set with corresponding index, False otherwise.