This took me around 40 minutes so here u go!
In this galaxy there are many things that are hot, planets with a thick atmosphere, and stars. In our solar system the sun is the hottest object, and the biggest. How did this come to be? And how did it become hot?
Before our solar system came to be there was another star. When a star dies it releases its outer layers of its atmosphere to grow smaller into a white dwarf or the star explodes in a beautiful supernova. Why is this important? It's important because when the outer layers of a star releases from its star (sorry if i wrote that weird) it makes a nebula. A nebula is a cloud of gas and dust that can make a star. Those same gas and dust particles made the sun. Here's the problem for this essay, the cloud was extremely cold. As time moved on the universe got colder. Never mind that, let's continue.
When the gas in the nebula meat they generate heat (We're getting somewhere for the sun to get hot!) It creates a warm clump of molecules called a protostar. After this step the sun moved into phase 3 of its life cycle, the T-Tauri Phase. A T-Tauri star begins when materials stop falling into the Protostar and release tremendous amounts of energy. The mean temperature of the Tauri star isn’t enough to support nuclear fusion at its core. For those who don't know, nuclear fusion is what makes a star a star. If you still don't know what I'm talking about, it powers nuclear power plants on earth.
The next stage of our sun's development is the one we are in now! The sun is now a Main Sequence star. The main sequence phase is the stage in development where the core temperature reaches the point for the fusion to commence. In this process, the protons of hydrogen are converted into atoms of helium. This reaction is exothermic; it gives off more heat than it requires and so the core of a main-sequence star releases a tremendous amount of energy. Here's a fun fact: The Sun consumes 600 million tons per second and produces 598 million tons per second of helium. The remaining 4 million is converted into energy. 4x3600x 24 x 365.242 tons per day.
The temperature of the surface of the sun is 10,000 degrees fahrenheit (5,600 C). That's a small number. The earth core is around the same temperature wise. Let's go deeper. In the core of the sun it's 27 million degrees! (15 Million C). That's the hottest temperature in the solar system. But it gets better, the sun burns brighter and warmer as it ages. In a billion years the sun will warm up by 8%.
So there you have it. The story of the sun and how it's hot. The Sun is a big part of our solar system and its heat will keep us warm!