Study of the lungs and their functions, including the exchange of oxygen and carbon dioxide during respiration.