A computer is an electronic device that processes data by accepting input, processing it, and producing output. It can perform both numerical and logical calculations much faster and more accurately than humans. Early mechanical computers from the 16th century evolved into modern electronic computers. Generations of computers progressed from using vacuum tubes to transistors to integrated circuits, becoming smaller, faster, and more powerful over time.