Here's a breakdown:
* Deep Space: When far from the sun, a comet is essentially a giant, frozen snowball. Its temperature can be incredibly low, reaching -370 degrees Fahrenheit (-223 degrees Celsius).
* Approaching the Sun: As a comet gets closer to the sun, the heat from the sun starts to vaporize the ice, creating the characteristic tail. The surface can get much warmer, possibly up to a few hundred degrees Fahrenheit (around 100 degrees Celsius), but the core remains frozen.
So, while parts of a comet can get quite warm, the overall temperature is still very cold.