Question: how does carbon dioxide in the atmosphere lead to global warming?
Answer: The temperature of the Earth depends on a balance between incoming energy from the Sun and the energy that bounces back into space. Carbon dioxide absorbs heat that would otherwise be lost to space. Some of this energy is re-emitted back to Earth, causing additional heating of the planet.