Jun-25-2020, 10:34 AM
(This post was last modified: Jun-25-2020, 10:34 AM by Gribouillis.)
Python lists can store arbitrary kind of objects, but usually, one wants to do more than just storing the objects. Most of the time we want to apply the same procedures to all the objects and the applicable procedures depend on the type of the objects. That's why homogeneous collections are always preferable to inhomogeneous collections. This principle is not specific to the Python language, it is a general programming principle.