Python Forum
what's homogeneus items defined by list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what's homogeneus items defined by list
#2
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.
Reply


Messages In This Thread
RE: what's homogeneus items defined by list - by Gribouillis - Jun-25-2020, 10:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  variable not defined inside a list comprehension Phidias618 1 2,013 May-13-2023, 09:05 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020