Absolutely ALL energy on Earth comes from the Sun - except for energy that came from ancient suns 6 billion years ago.
Fossil fuels like coal, oil, and natural gas came from plants and animals that...
Most eukaryotic cells have a nucleus (although there ARE some who don't) but prokaryotic cells don't have a membrane-enclosed nucleus, rather they have DNA just floating in the cytoplasm.