Computer >> Computer tutorials >  >> Programming >> Python

What is the homogeneous list in Python list?


There is nothing like homogenous list in Python. The python docs just suggest to use lists for homogenous data. Qouting the docs

Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).


You can very well use lists for heterogenous data as well.