If I have Bag(a=1,b=2,c=3) and I want to change the individual values. I can call self.a = 10 so my updated output would be: Bag(a=10,b=2,c=3).
If k = a and I have the code:
temp = ("self." + str(k))
print(temp) --> self.a
How can I do something like:
temp = 10
So it updates the bag (not temp itself to 10)?
Thanks