Air inside the alveoli contains a higher partial pressure of oxygen compared to the blood in the capillaries. Conversely, blood in the lungs' capillaries contains a higher partial pressure of carbon dioxide compared to the air in the alveoli.