Posts by Angelo • 11 points
1 post
-
1
votes1
answer304
viewsQ: Dictionary as input argument is being modified within the function
In the code below the dictionary used as input argument is also being modified by the function. I need to perform a deepcopy() at all times? def muda(a): a['valor'] = 50 return a dic1 = {'valor':…