A printer is a device used to produce a hard copy output of documents or images from a digital format. It accepts electronic data from a computer or other device and transfers it onto paper, creating a physical copy.
On the other hand, a scanner is a device used to convert physical documents or images into digital formats. It captures an image or text from a physical document and converts it into a digital file that can be stored, edited, or printed.
In summary, a printer produces hard copy outputs from digital files, while a scanner creates digital files from physical copies.