Set Methods

 0    18 карточки    sir
скачать mp3 Печать играть Проверьте себя
 
Вопрос Ответ
Returns a set, that is the intersection of two other sets.
начать обучение
. intersection() / &
Removes the items in this set that are not present in other, specified set(s).
начать обучение
. intersection_update() / &=
Returns a set containing the union of sets
начать обучение
. union() / |
Update the set with the union of this set and others
начать обучение
. update() / |=
Returns a set containing the difference between two or more sets.
начать обучение
. difference() / -
Removes the items in this set that are also included in another, specified set.
начать обучение
. difference_update() / -=
Returns a set with the symmetric differences of two sets
начать обучение
. symmetric_difference() / ^
Inserts the symmetric differences from this set and another
начать обучение
. symmetric_difference_update() / ^=
Returns a copy of the set.
начать обучение
. copy()
Removes all the elements from the set.
начать обучение
. clear()
Adds an element to the set.
начать обучение
. add()
Removes the specified element.
начать обучение
. remove()
Remove the specified item.
начать обучение
. discard()
Removes an element from the set
начать обучение
. pop()
Returns whether two sets have a intersection or not.
начать обучение
. isdisjoint()
Returns whether another set contains this set or not.
начать обучение
. issubset()
Returns whether this set contains another set or not.
начать обучение
. issuperset()
Returns the length of a set. (Inner method.)
начать обучение
. __len__

Вы должны войти в свой аккаунт чтобы написать комментарий.