The RaspberryPi General Purpose Input and Output (GPIO) pins are the means through which it controls and senses its surroundings. GPIO pins are, in general, common across all models. The specifics of the RaspberryPi Zero and Zero W are shown here.
Software interfaces to GPIO depend on the programming language; the GPIOZERO library is a popular choice for robotics projects using Python.