Sets Flashcards

1
Q

Adds an element from the set.

A

Add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Removes all elements from the sets

A

Clear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Returns a copy of the set

A

Copy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Returns a set containing the difference between two or more sets.

A

Difference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Removes the item in this set that are also included in another, specified set

A

Difference update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Removes the specified item

A

Discard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns a set, that is the intersection of two other sets

A

Intersection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Removes the items in this set that are not present in other, specified sets.

A

Intersection update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Returns whether two sets have a intersection or not

A

Isdisjoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Returns whether another set contains another set or not

A

Issubset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Returns whether this set contains another set or not

A

Issuperset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Removes an element from the set

A

Pop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Removes an specified element from the set

A

Remove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

It is an unordered, unchangeable and indexed collection.

A

Set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Returns a set with the symmetric differences of two sets

A

Symmetric difference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Inserts the symmetric differences from this set and another

A

Symmetric difference update

17
Q

Returns a set containing the union of sets

A

Union

18
Q

Update the set with the union of this set and other

A

Update