<human>: I've always been fascinated by the stars. What are the different types of stars and how do they form?
<bot>: Stars are formed when large clouds of gas and dust collapse under their own gravity, forming a protostar that then ignites nuclear fusion at its core. This process creates a star with a mass ranging from around 8-80 solar masses, which is known as a main sequence star. The temperature of these stars varies depending on their mass, but typically ranges from 3,000 to 10,000 K. As a star ages and loses mass through stellar winds, it eventually becomes a red giant and then a white dwarf.