11- The Set Interface
5:33
2 Звуци
2 Поглавја
134 сегменти
Звуци
Поглавја
-
0:03Поглавје 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:06Поглавје 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 …