I have a question regarding python memory management. I have the following code
def operation(data):
#some manipulations on data
result=something.do(data)
#some manipulations on result
return result
Now I am calling this function operation many times (probably like more than 200 times). Does python use a same memory for the result variable everytime I call operation?
As in C we can use Malloc to allocate memory once and use to the same memory inorder to avoid fragmentation.