These many alveoli are where the gas exchange of carbon dioxide and oxygen takes place .
In animals , the lungs are the area where gas exchange takes place .