I'm new to dictionaries and have found the following to be very confusing.
resume = [{'name': 'New', 'value1': 'dfgdf'}, {'name': 'garry', 'value1': 'hhhhhh'}]
current = resume[0]
current['name'] = '24/7 link was not requested...'
print(resume)
Returns:
[{'name': '24/7 link was not requested...', 'value1': 'dfgdf'}, {'name': 'garry', 'value1': 'hhhhhh'}]
Why is this happening when a permanent/continuous link between resume
and current
was not requested? ...... and how can I change this so that current['name']
will update to the new/requested string value and not resume.