Set transform via expression


I have a list of objects that I want to set the transform scale and rotation to the same as a master object

what I do now is:

slave_01.translateX =masterObject.translateX;
slave_01.translateY =masterObject.translateY;
slave_01.translateZ =masterObject.translateZ;
slave_01.rotateX =masterObject.rotateX;

slave_n.translateX = masterObject.transtateX;

with a lot of slave objects this gets tedious very quickly, In an expression, is there a simpler way to get this done?
like a for loop or something?