Approximately how long does the average path of a photon take to travel from the solar core to the surface?

Answer

Hundreds of thousands of years.

Due to the extreme density in the solar core, a gamma-ray photon is constantly scattered millions of times, causing its average path from the core to the surface to take hundreds of thousands of years, during which its energy is drastically reduced.

Approximately how long does the average path of a photon take to travel from the solar core to the surface?
physicsstarradiationastrophysicsgamma ray