What are computer devices that are used as both output and input devices?

Devices that are used for both input and output are known as I/O devices. I/O means input and output. Hard drives are an example of I/O devices.