Set Methods

 0    18 tarjetas    sir
descargar mp3 imprimir jugar test de práctica
 
término definición
Returns a set, that is the intersection of two other sets.
empezar lección
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
empezar lección
. intersection_update() / &=
Returns a set containing the union of sets
empezar lección
. union() / |
Update the set with the union of this set and others
empezar lección
. update() / |=
Returns a set containing the difference between two or more sets.
empezar lección
. difference() / -
Removes the items in this set that are also included in another, specified set.
empezar lección
. difference_update() / -=
Returns a set with the symmetric differences of two sets
empezar lección
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
empezar lección
. symmetric_difference_update() / ^=
Returns a copy of the set.
empezar lección
. copy()
Removes all the elements from the set.
empezar lección
. clear()
Adds an element to the set.
empezar lección
. add()
Removes the specified element.
empezar lección
. remove()
Remove the specified item.
empezar lección
. discard()
Removes an element from the set
empezar lección
. pop()
Returns whether two sets have a intersection or not.
empezar lección
. isdisjoint()
Returns whether another set contains this set or not.
empezar lección
. issubset()
Returns whether this set contains another set or not.
empezar lección
. issuperset()
Returns the length of a set. (Inner method.)
empezar lección
. __len__

Debes iniciar sesión para poder comentar.