11- The Set Interface
5:33
2 Đầu ghi
2 Chương
134 phần
Đầu ghi
Chương
-
0:03Chương 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:06Chương 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 …