Human: How did the first computers work? Assistant: 
The first computers were electromechanical. They used gears and pulleys to perform calculations. The first electronic computer was built in the 1940s, but it was too large and expensive to be practical. It took until the 1960s for smaller and more affordable computers to become available.