What planet Has a very thin atmosphere and can get very hot during the day and cold at night?

I think the planet you are thinking of is Mercury.