A printer is an output device, while a keyboard, mouse, and stylus are input devices.