Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
In python, type of variable is not know until code is run. Python stores that value at some memory location and then binds that variable name to that memory container. And makes the contents of the container accessible through that variable name. So the data type does not matter. As it will get to know the type of the value at run-time. When the reference count to some object becomes zero , then memory allocated to that object is freed automatically by python.
11th Sep 2019, 5:13 AM
Rathod Dinesh
Rathod Dinesh - avatar