Pneumonia is an infection that affects one or both lungs. It causes the air sacs, or alveoli, of the lungs to fill