मराठी

How are lists implemented in memory?

Advertisements
Advertisements

प्रश्न

How are lists implemented in memory?

लघु उत्तर
Advertisements

उत्तर

  • A Python list is implemented as a variable-length array.
  • It stores contiguous references (pointers) to objects, not necessarily the objects themselves.
  • A list header stores a pointer to this reference array and its length.
  • When an item is inserted or appended, Python may resize the array of references.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Liner List Manipulation - EXERCISE [पृष्ठ १०४]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 5 Liner List Manipulation
EXERCISE | Q 4. | पृष्ठ १०४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×