<human>:  Who invented the transistor and when?
<bot>: The transistor was invented by John Bardeen, Walter Brattain, and William Shockley in 1947. They were working at Bell Labs, and they were trying to build a device that could amplify signals. They were able to do this by using a semiconductor material called germanium.