Using value of load cell output to control the direction of a servo motor

The expression z=(scale.get_units(),3) just sets z equal to 3. Look up the C/C++ comma operator.