

Hi there,
Please find the answer below:
It is the atmosphere which keeps the average temperature of the earth nearly constant.
It prevents the sudden increase in temperature during the day and sudden drop during the night by preventing the escape of heat into the outer space.
Regards
