How does Altitude Affect Air Pressure?

Air is said to be thinner the higher you go up, which means that the air will weigh less. The more something weighs the more pressure it is able to exert. Therefore, the higher you go, the less the air weighs, and the pressure exerted by the air will decrease.