JLR interview question

memory management in python Vs java