User: Where was the first computer invented?
Assistant: The first computer was a mechanical calculator built in 1822 by Charles Babbage. He invented the Difference Engine, a mechanical computer that could calculate the trajectory of a projectile fired from a cannon.