Input devices such as a keyboard or a mouse is used by a person to communicate with the computer.
Output devices such as a monitor or a printer allows a person to see the information from the computer.
Devices such as a modem or a speaker can be considered as bot, input and output devices. A
modem sends and recieves information to and from your computer, and a speaker can be used as a microphone
so this can be used as an input or output device.