An object oriented language which that all variables hold references to their objects in Python. The references values execute are according to the given functions and as a following result the value of references can't be changed. and the objects can be changed if it is mutable.
def function(my_dict): my_dict["a"] = 1
d = {}
function(d)
print d
# {'a': 1}
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
An object oriented language which that all variables hold references to their objects in Python. The references values execute are according to the given functions and as a following result the value of references can't be changed. and the objects can be changed if it is mutable.