A sputum culture is a test used to identify bacteria or other organisms responsible for lung infections. A positive result indicates the presence of an infection in the lungs and helps determine the specific type of bacteria or fungus causing the infection. This test is essential for diagnosing respiratory conditions and guiding appropriate treatment.