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}
Liked By
Write Answer
how arguments are passed by value or by reference ?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
19-Sep-2018Prakash nidhi Verma
20-Jul-2018An 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.