I have a number of objects with a similar name format, e.g. max_A, max_B, max_C etc. Given the value of a certain object ID, I'd like to change the value of the object named max_ID (let's say increment by 1, assuming the object already stores an int).
E.g. if ID = 'A' then I'd like to execute max_A += 1, but if ID = 'Q' then I'd like max_Q += 1.
I know I can use eval('max_'+ID) to get the value of max_ID, but how can I change the value?