DEV Community

Discussion on: Learn Python: Sets

Collapse
 
waylonwalker profile image
Waylon Walker

Sets are one of my favorite container types. You can do really powerful operations with very little effort, and they are wicked fast at it.

The one thing that I see your missing is the set operators like + * - | ^

Collapse
 
rishiabee profile image
Rishi

Waylon, Thanks!
Will definitely include that in another article about advance features of sets.

Much appreciated. Thanks.

Collapse
 
waylonwalker profile image
Waylon Walker

As much as I like the tersness of the operators, and being able to quickly compare datasets ad-hoc, using the method names can be much more readable and less confusing. Good call to use those. I guess its worth a mention because you will run into them into the wild.