<human>:  How did the first computers work?
<bot>: The first computers were electromechanical. They were mechanical devices that performed arithmetic and logic operations. The first electronic computers were built in the 1940s. They were called “electronic brains” because they were designed to mimic the human brain.