human
How does a solar panel convert sunlight into electricity?
assistant
A solar panel converts sunlight into electricity by using photovoltaic cells. The photovoltaic cells are made of semiconductors that absorb light from the sun and convert it into an electric current. The current is then sent to an inverter, which converts it into usable electricity.