My scenario is:
I have a dictionary imported from a python file. After some calculations, I updated that dictionary.
from python_file import variable as vrbl
vrbl['new_key001'] = value001
vrbl['new_key002] = value002
What I want:
I want to update this change to that file as well. I have searched many questions but none of them meets my scenario. Below is the content of my python file.
python_file.py
variable = {key1: value1, key2: value2, key3: value3}
after updates python_file.py would look like:
variable = {key1: value1, key2: value2, key3: value3, new_key001: value001, new_key002: value002}
Thanks in advance!