Trying to understand below about python dictionaries:
## Function
def abc(gamer) :
gamer['name']= 'Roger'
## MAIN
nm={'name':'Sam'}
print(nm)
abc(nm)
print(nm) ##Could not understand this output
This final print output returns {‘name’: ‘Roger’} but I expect to see {‘name’: ‘Sam’} as there has been no value returned from the function call. Much appreciated if experts can help explain the same.