OK. You are confused with expressions and properties.
EXPRESSIONS, like 'Object_Name.Physics.Mass', tell you a value. You cannot change these directly.
PROPERTIES (like density) are changed by the properties panel (to the left of the screen by default).
think of expressions as things you GET and properties as things you SET.
To do what you want, set DENSITY.