Python language basics 49: introduction to sets
September 20, 2015 Leave a comment
Introduction
In the previous post we looked at the built-in enumerate function in Python. We saw how it could be used to get an item counter while looping through a collection. It provides a more elegant and reliable solution compared to a manual counter variable that’s updated after every iteration.
In this post we’ll start discussing how sets are represented in Python.