Definition The set create an unordered collection of unique elements. Syntax set() -> new empty set object set(iterable) -> new set object Parameters iterable Examples The method return with the common elements of set.
__eq__ The method tested whether the sets are equal are not.
__and__ The method is equal to set.intersection.
__contains__ The method tested whether the element is contained in the set1.
__gt__ The method tested whether the set1 is greater than set2.
__len__ The method return with:
len(set) Equivalent to:
__ne__ The method is set is not equal to set2.
__lt__ The method tested whether the set1 is lesser than set2.
__or__ The method return with two equation comparison.
__rand__ The method return with the common elements between set1 and set2
operator.length_hint(set) The return is:
str.join(set) Returns are following:
for statement Method run the loop for sets.
for loop in itertools.accumulate(set.difference) The returns with accumulate of items of difference between sets.
if min(map(lambda(decimal,decimal)).__gt__() The method returns with the minimum value in the sets equation set1/set2*set2 is greater than 2.
itertools.accumulate(set) The return with accumulation of set.
The returns are following:
|
Python >
set
Subpages (17):
set.add()
set.clear()
set.copy()
set.difference()
set.difference_update()
set.discard()
set.intersection()
set.intersection_update()
set.isdisjoint()
set.issubset()
set.issuperset()
set.pop()
set.remove()
set.symmetric_difference()
set.symmetric_difference_update()
set.union()
set.update()
Comments