请告诉我关于太阳的一些基础知识，回答时只用三个句子，并使用疑问句开头。

What is the Sun’s main function in our solar system? The Sun is the primary energy source for life on Earth. How does the Sun generate its immense energy? Nuclear fusion occurs in its core, converting hydrogen into helium.
user
What is the Sun’s main function in our solar system? The Sun is the primary energy source for life on Earth. How does the Sun generate its immense energy? Nuclear fusion occurs in its core, converting hydrogen into helium. How does the Sun affect Earth's climate and weather? It provides the heat and light that drive Earth's climate and weather patterns.
assistant