How does atmosphere acts as a blanket?
The atmosphere prevents the sudden increase in temperature during the daylight hours and it slows down the escape of heat into outer space during the night. This is because air is a bad conductor of heat and our atmosphere mainly contains air. Thus, the atmosphere mainly keeps the average temperature of earth steady.