11- The Set Interface
5:33
2 Høyttalere
2 Kapitler
134 segmenter
Høyttalere
Kapitler
-
0:03Kapittel 1: Now let's talk about the set interface. 302s · Speaker 2
Now let's talk about the set interface. This interface represents a collection that contains no duplicates. So it's a great way for storing a list of unique values. Let me show you. So here I'm going to declare a variable of type set of str…
-
5:06Kapittel 2: You want to know what items we have in the first set that we do not have in the second set. 24s · Speaker 2
You want to know what items we have in the first set that we do not have in the second set. To do that we call the remove all method. So we are removing everything that we have in set two and keeping the rest. Take a look. So the result is …