A p type semiconductor is formed when trivalent impurities like boron are added to intrinsic semiconductors such as silicon. These trivalent atoms create "holes," or vacant spots, that accept electrons. In this case, holes become the majority charge carriers, allowing electric current to flow through the absence of electrons rather than their presence. https://www.campuscomponent.com/blogs/post/difference-between-p-type-and-n-type-semiconductors