Python is Dynamic

Previous
Next

Static memory:

  • Static means “fixed memory”
  • The languages which are supporting primitive types allowed allocating static memory.
  • Primitive variable size and type are fixed.
  • Primitive variable stores data directly.
  • Compiler raises error when data limit or type is deviated from specified.

Dynamic memory:

  • Python is dynamic.
  • Dynamic memory means type and size of data can vary.
  • Python can store information in Object format.
  • Dynamic variables cannot store the data directly.
  • Dynamic variables store the reference of Object which holds data.
  • In Python, object location changes every time when we modify the data.
Previous
Next

Add Comment

Courses Enquiry Form