Posts by "JBT"

Python 3 set

In Previous article we talked about Python List. But what is Python 3 Set? A set is an unordered collection of unique items. Unordered means that this type of collection does not allow indexing and you cannot access their elements through an index like in the case of a list or a tuple.

Python list

We already know that a python list can be written as comma-separated values between square brackets and the elements don’t have to be from the same type. Naturally this latter can cause some confusion and errors if you tend to forget about this feature.