Advertisements
Advertisements
प्रश्न
How is memory allocated to a list in Python?
लघु उत्तरीय
Advertisements
उत्तर
- Python allocates memory dynamically for a list.
- The list stores a contiguous array of references to its objects.
- Its size is not fixed; memory is resized when elements are added or removed.
- The memory used by each reference depends on the system architecture, such as 32-bit or 64-bit mode.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
