Lung function refers to the ability of the lungs to take in oxygen and expel carbon dioxide. It is typically measured using spirometry, which assesses metrics such as Forced Vital Capacity (FVC) and Forced Expiratory Volume in one second (FEV1). These measurements help medical professionals understand how well the lungs are performing.