I am at a strong beginner level in Python. Recently, I came up with a question that had put me in a deep thought:
Is there any way through which I may get to know whether a given memory address (in integer or string) is occupied or free for use in Python?
This might have been possible with languages which are designed keeping in mind a proper memory model like c and c++, but when it comes to such a dynamically typed programming language will it be possible?
While doing some research, I came to know about the id() function
. So, is there any way to leverage this to find out the answer to this problem?