Set Methods

 0    18 flashcards    sir
mp3 indir Baskı oynamak kendini kontrol et
 
soru cevap
Returns a set, that is the intersection of two other sets.
öğrenmeye başla
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
öğrenmeye başla
. intersection_update() / &=
Returns a set containing the union of sets
öğrenmeye başla
. union() / |
Update the set with the union of this set and others
öğrenmeye başla
. update() / |=
Returns a set containing the difference between two or more sets.
öğrenmeye başla
. difference() / -
Removes the items in this set that are also included in another, specified set.
öğrenmeye başla
. difference_update() / -=
Returns a set with the symmetric differences of two sets
öğrenmeye başla
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
öğrenmeye başla
. symmetric_difference_update() / ^=
Returns a copy of the set.
öğrenmeye başla
. copy()
Removes all the elements from the set.
öğrenmeye başla
. clear()
Adds an element to the set.
öğrenmeye başla
. add()
Removes the specified element.
öğrenmeye başla
. remove()
Remove the specified item.
öğrenmeye başla
. discard()
Removes an element from the set
öğrenmeye başla
. pop()
Returns whether two sets have a intersection or not.
öğrenmeye başla
. isdisjoint()
Returns whether another set contains this set or not.
öğrenmeye başla
. issubset()
Returns whether this set contains another set or not.
öğrenmeye başla
. issuperset()
Returns the length of a set. (Inner method.)
öğrenmeye başla
. __len__

Yorum yapmak için giriş yapmalısınız.