I have a class like this
class Data():
def __init__(self,pDict):
# its take dict as parameter
# my dict is pDict={'one':1,'two':2,'Three':3......its lot of keys}
self.data=pDict
self.one=pDict['one']
self.two=pDict['two']
self.Three=pDict['Three']
.
.
.
.
.
if set new to value to property.then it need to update on main dict also how?
d=Data()
print(d.one)# output: 1
print(d.two)# output: 2
d.two=22
print(d.two)# output: 22
print(d.data)# output: {'one':1,'two':2,'Three':3......}
# i need change this also
how to update automatically.