11- The Set Interface

5:33 2 Høyttalere 2 Kapitler 134 segmenter

Kapitler

  1. 0:03

    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…

  2. 5:06

    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 …