How is electricity produced in cell?

HOW IS ELECTRICITY PRODUCED IN CELL?

Solar cells are made of the semimetal silicon. Each cell has a positively and negatively charged layer of this semiconductor material. When sunlight hits the cell, voltage is generated between the layers — a DC current like that in a battery. With the aid of an inverter, also called a solar inverter, the DC current is transformed into AC current, which is also the current used within the local grid.